From: Babu Moger Date: Wed, 11 Jan 2017 00:13:02 +0000 (-0800) Subject: net/rds: Fix minor linker warnings X-Git-Tag: v4.1.12-105.0.20170705_2000~45 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f9d1e25b47baa3dd9a4937c3fb2e81630ffdea9f;p=users%2Fjedix%2Flinux-maple.git net/rds: Fix minor linker warnings Fixes: fcdaab66 {IB/{core,ipoib},net/{mlx4,rds}}: Mark unload_allowed as __initdata variable Seeing this warning while building the kernel. Fix it. MODPOST 1555 modules WARNING: net/rds/rds_rdma.o(.text+0x1d8): Section mismatch in reference from the function rds_rdma_init() to the variable .init.data:unload_allowed The function rds_rdma_init() references the variable __initdata unload_allowed. This is often because rds_rdma_init lacks a __initdata annotation or the annotation of unload_allowed is wrong. Orabug: 25393132 Signed-off-by: Babu Moger Acked-by: Santosh Shilimkar Reviewed-by: Yuval Shaia Signed-off-by: Allen Pais --- diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c index 4b4e442aef1d..1cd260a0f8f9 100644 --- a/net/rds/rdma_transport.c +++ b/net/rds/rdma_transport.c @@ -394,7 +394,7 @@ out: #define MODULE_NAME "rds_rdma" -int rds_rdma_init(void) +int __init rds_rdma_init(void) { int ret;