[openeuler:OLK-6.6 2455/2455] fs/nfs/enfs_adapter.c:62:26: warning: no previous prototype for 'nfs_multipath_router_get'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 9b85bcf0e6357841885264f42859bec05c9073f4 commit: 18e360871c3f648ecb0d8cc9b23fd4268a64c17f [2455/2455] add enfs feature config: arm64-randconfig-004-20250704 (https://download.01.org/0day-ci/archive/20250704/202507040402.hCXev0Wz-lkp@i...) compiler: aarch64-linux-gcc (GCC) 10.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250704/202507040402.hCXev0Wz-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202507040402.hCXev0Wz-lkp@intel.com/ All warnings (new ones prefixed by >>):
fs/nfs/enfs_adapter.c:62:26: warning: no previous prototype for 'nfs_multipath_router_get' [-Wmissing-prototypes] 62 | struct enfs_adapter_ops *nfs_multipath_router_get(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ fs/nfs/enfs_adapter.c:78:6: warning: no previous prototype for 'nfs_multipath_router_put' [-Wmissing-prototypes] 78 | void nfs_multipath_router_put(struct enfs_adapter_ops *ops) | ^~~~~~~~~~~~~~~~~~~~~~~~ fs/nfs/enfs_adapter.c:84:6: warning: no previous prototype for 'is_valid_option' [-Wmissing-prototypes] 84 | bool is_valid_option(enum nfsmultipathoptions option) | ^~~~~~~~~~~~~~~ -- fs/nfs/fs_context.c:374:26: warning: no previous prototype for 'getNfsMultiPathOpt' [-Wmissing-prototypes] 374 | enum nfsmultipathoptions getNfsMultiPathOpt(int token) | ^~~~~~~~~~~~~~~~~~ -- net/sunrpc/sunrpc_enfs_adapter.c:132:6: warning: no previous prototype for 'rpc_task_release_xprt' [-Wmissing-prototypes] 132 | void rpc_task_release_xprt(struct rpc_clnt *clnt, struct rpc_xprt *xprt) | ^~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for RESCTRL_FS Depends on [n]: MISC_FILESYSTEMS [=n] && ARCH_HAS_CPU_RESCTRL [=y] Selected by [y]: - ARM64_MPAM [=y] vim +/nfs_multipath_router_get +62 fs/nfs/enfs_adapter.c 61
62 struct enfs_adapter_ops *nfs_multipath_router_get(void) 63 { 64 struct enfs_adapter_ops *ops; 65 66 rcu_read_lock(); 67 ops = rcu_dereference(enfs_adapter); 68 if (ops == NULL) { 69 rcu_read_unlock(); 70 return NULL; 71 } 72 if (!try_module_get(ops->owner)) 73 ops = NULL; 74 rcu_read_unlock(); 75 return ops; 76 } 77 78 void nfs_multipath_router_put(struct enfs_adapter_ops *ops) 79 { 80 if (ops) 81 module_put(ops->owner); 82 } 83 84 bool is_valid_option(enum nfsmultipathoptions option) 85 { 86 if (option < REMOTEADDR || option >= INVALID_OPTION) { 87 pr_warn("ENFS: invalid option %d\n", 88 option); 89 return false; 90 } 91 92 return true; 93 } 94
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot