]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
commitf9d1e25b47baa3dd9a4937c3fb2e81630ffdea9f
tree60b6967f4c0c980f146e0fae0fb671d24389cd3c
parent352b0130033cacb03bd5fd6c3dd9abb8cbe5f28a
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 <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