
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IC914B CVE: NA -------------------------------- Fix the kabi broken introduced in commit 10d1ee679a37 ("net: inline sock_prot_inuse_add()"), which move the struct prot_inuse to include/net/sock.h. Fixes: 10d1ee679a37 ("net: inline sock_prot_inuse_add()") Signed-off-by: Wang Liang <wangliang74@huawei.com> --- include/net/sock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/net/sock.h b/include/net/sock.h index 9795d680a280..cdf00877055a 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1461,9 +1461,11 @@ proto_memory_pressure(struct proto *prot) #ifdef CONFIG_PROC_FS #define PROTO_INUSE_NR 64 /* should be enough for the first time */ +#ifndef __GENKSYMS__ struct prot_inuse { int val[PROTO_INUSE_NR]; }; +#endif /* Called with local bh disabled */ static inline void sock_prot_inuse_add(const struct net *net, const struct proto *prot, int val) -- 2.34.1