Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: rds: add missing __init/__exit annotations to module init/exit funcs

Add missing __init/__exit annotations to module init/exit funcs.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20220909091840.247946-1-xiujianfeng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Xiu Jianfeng and committed by
Jakub Kicinski
f0bd32c8 9621e74f

+4 -4
+1 -1
net/rds/af_rds.c
··· 894 894 895 895 u32 rds_gen_num; 896 896 897 - static int rds_init(void) 897 + static int __init rds_init(void) 898 898 { 899 899 int ret; 900 900
+2 -2
net/rds/rdma_transport.c
··· 291 291 #endif 292 292 } 293 293 294 - static int rds_rdma_init(void) 294 + static int __init rds_rdma_init(void) 295 295 { 296 296 int ret; 297 297 ··· 307 307 } 308 308 module_init(rds_rdma_init); 309 309 310 - static void rds_rdma_exit(void) 310 + static void __exit rds_rdma_exit(void) 311 311 { 312 312 /* stop listening first to ensure no new connections are attempted */ 313 313 rds_rdma_listen_stop();
+1 -1
net/rds/tcp.c
··· 712 712 } 713 713 module_exit(rds_tcp_exit); 714 714 715 - static int rds_tcp_init(void) 715 + static int __init rds_tcp_init(void) 716 716 { 717 717 int ret; 718 718