[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yh8FVOQZ+nPN50D+@TonyMac-Alibaba>
Date: Wed, 2 Mar 2022 13:49:08 +0800
From: Tony Lu <tonylu@...ux.alibaba.com>
To: Dust Li <dust.li@...ux.alibaba.com>
Cc: Karsten Graul <kgraul@...ux.ibm.com>, davem@...emloft.net,
kuba@...nel.org, netdev@...r.kernel.org,
linux-s390@...r.kernel.org, linux-rdma@...r.kernel.org
Subject: Re: [PATCH net-next] net/smc: fix compile warning for smc_sysctl
On Wed, Mar 02, 2022 at 11:43:12AM +0800, Dust Li wrote:
> Fix build:
>
> In file included from net/smc/smc_sysctl.c:17:
> >> net/smc/smc_sysctl.h:23:5: warning: no previous prototype \
> for function 'smc_sysctl_init' [-Wmissing-prototypes]
> int smc_sysctl_init(void)
> ^
>
> and
>
> >> WARNING: modpost: vmlinux.o(.text+0x12ced2d): Section mismatch \
> in reference from the function smc_sysctl_exit() to the variable
> .init.data:smc_sysctl_ops
> The function smc_sysctl_exit() references
> the variable __initdata smc_sysctl_ops.
> This is often because smc_sysctl_exit lacks a __initdata
> annotation or the annotation of smc_sysctl_ops is wrong.
>
> Fixes: 462791bbfa35 ("net/smc: add sysctl interface for SMC")
> Reported-by: kernel test robot <lkp@...el.com>
> Signed-off-by: Dust Li <dust.li@...ux.alibaba.com>
Thanks for the fixing.
Reviewed-by: Tony Lu <tonylu@...ux.alibaba.com>
Powered by blists - more mailing lists