Re: [PATCH rdma-next] RDMA/nldev: Fix section mismatch warning for nldev

Leon Romanovsky
2022-10-28T07:12:29Z

On Fri, Oct 28, 2022 at 09:58:56AM +0300, Leon Romanovsky wrote:
> ppc64_defconfig) produced this warning:
>
> WARNING: modpost: drivers/infiniband/core/ib_core.o: section mismatch in reference: .init_module (section: .init.text) -> .nldev_exit (section: .exit.text)
>
> Fix it by removing __init/__exit markers as nldev is part of ib_core.ko
> and as such doesn't require any special notations for entry/exit functions.
>
> Fixes: 6c80b41abe22 ("RDMA/netlink: Add nldev initialization flows")
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Leon Romanovsky <leon@kernel.org>
> ---
> drivers/infiniband/core/nldev.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

BTW, this was reported for rdma-rc and should go there.

Thanks