aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/scm.c
diff options
context:
space:
mode:
authorDust Li <[email protected]>2022-03-09 03:30:51 +0000
committerJakub Kicinski <[email protected]>2022-03-10 04:02:35 +0000
commitd9f50991592513cc7633684cbaff65022cfa6816 (patch)
tree10af52488d34ba5b73389b0ded4651d4d679f257 /net/unix/scm.c
parentMerge branch 'net-fungible-fix-errors-when-config_tls_device-n' (diff)
downloadkernel-d9f50991592513cc7633684cbaff65022cfa6816.tar.gz
kernel-d9f50991592513cc7633684cbaff65022cfa6816.zip
net/smc: fix -Wmissing-prototypes warning when CONFIG_SYSCTL not set
when CONFIG_SYSCTL not set, smc_sysctl_net_init/exit need to be static inline to avoid missing-prototypes if compile with W=1. Since __net_exit has noinline annotation when CONFIG_NET_NS not set, it should not be used with static inline. So remove the __net_init/exit when CONFIG_SYSCTL not set. Fixes: 7de8eb0d9039 ("net/smc: fix compile warning for smc_sysctl") Signed-off-by: Dust Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/scm.c')
0 files changed, 0 insertions, 0 deletions