../net/smc/smc_ops.c: In function ‘smc_ops_reg’: ../net/smc/smc_ops.c:27:17: error: implicit declaration of function ‘list_add_tail_rcu’; did you mean ‘list_add_tail’? [-Wimplicit-function-declaration] 27 | list_add_tail_rcu(&ops->list, &smc_ops_list); | ^~~~~~~~~~~~~~~~~ | list_add_tail ../net/smc/smc_ops.c: In function ‘smc_ops_unreg’: ../net/smc/smc_ops.c:35:9: error: implicit declaration of function ‘list_del_rcu’; did you mean ‘list_del_init’? [-Wimplicit-function-declaration] 35 | list_del_rcu(&ops->list); | ^~~~~~~~~~~~ | list_del_init ../net/smc/smc_ops.c: In function ‘smc_ops_find_by_name’: ../net/smc/smc_ops.c:46:9: error: implicit declaration of function ‘list_for_each_entry_rcu’; did you mean ‘list_for_each_entry_from’? [-Wimplicit-function-declaration] 46 | list_for_each_entry_rcu(ops, &smc_ops_list, list) { | ^~~~~~~~~~~~~~~~~~~~~~~ | list_for_each_entry_from ../net/smc/smc_ops.c:46:53: error: ‘list’ undeclared (first use in this function); did you mean ‘klist’? 46 | list_for_each_entry_rcu(ops, &smc_ops_list, list) { | ^~~~ | klist ../net/smc/smc_ops.c:46:53: note: each undeclared identifier is reported only once for each function it appears in ../net/smc/smc_ops.c:46:58: error: expected ‘;’ before ‘{’ token 46 | list_for_each_entry_rcu(ops, &smc_ops_list, list) { | ^~ | ; ../net/smc/smc_ops.c:51:1: error: control reaches end of non-void function [-Werror=return-type] 51 | } | ^ ../net/smc/smc_ops.c: At top level: ../net/smc/smc_ops.c:32:13: warning: ‘smc_ops_unreg’ defined but not used [-Wunused-function] 32 | static void smc_ops_unreg(struct smc_ops *ops) | ^~~~~~~~~~~~~ ../net/smc/smc_ops.c:18:12: warning: ‘smc_ops_reg’ defined but not used [-Wunused-function] 18 | static int smc_ops_reg(struct smc_ops *ops) | ^~~~~~~~~~~ cc1: some warnings being treated as errors make[5]: *** [../scripts/Makefile.build:194: net/smc/smc_ops.o] Error 1 make[4]: *** [../scripts/Makefile.build:440: net/smc] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:440: net] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1989: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o