]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net/rds: Fix minor linker warnings
authorBabu Moger <babu.moger@oracle.com>
Wed, 11 Jan 2017 00:13:02 +0000 (16:13 -0800)
committerAllen Pais <allen.pais@oracle.com>
Sat, 24 Jun 2017 01:27:48 +0000 (06:57 +0530)
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 <babu.moger@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
net/rds/rdma_transport.c

index 4b4e442aef1d4790302a5f1f9ea9a1d6cdfbfaa3..1cd260a0f8f97af2a3fb8d0dfe81ac90a5db9ac6 100644 (file)
@@ -394,7 +394,7 @@ out:
 
 #define MODULE_NAME "rds_rdma"
 
-int rds_rdma_init(void)
+int __init rds_rdma_init(void)
 {
        int ret;