From f9d1e25b47baa3dd9a4937c3fb2e81630ffdea9f Mon Sep 17 00:00:00 2001 From: Babu Moger Date: Tue, 10 Jan 2017 16:13:02 -0800 Subject: [PATCH] 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 --- net/rds/rdma_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1