* [snitzer:nfs-localio-for-next 25/26] fs/nfsd/filecache.c:843:18: error: no member named 'local_clients_lock' in 'struct nfsd_net'
@ 2024-11-03 5:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-11-03 5:35 UTC (permalink / raw)
To: Mike Snitzer; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git nfs-localio-for-next
head: 1a750ba15bb3f764f22fcc9731f8991cba0b084b
commit: 987bb33e11a334f6b224f92ab1f1f6c694eb96ee [25/26] nfs_common: split localio global nfs_uuids_lock
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20241103/202411031358.E7Kd2yiu-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241103/202411031358.E7Kd2yiu-lkp@intel.com/reproduce)
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/202411031358.E7Kd2yiu-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/nfsd/filecache.c:35:
In file included from include/linux/pagemap.h:8:
In file included from include/linux/mm.h:2213:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from fs/nfsd/filecache.c:42:
include/linux/nfslocalio.h:105:46: warning: declaration of 'struct nfs_fh' will not be visible outside of this function [-Wvisibility]
105 | static inline void nfs_close_local_fh(struct nfs_fh *fh)
| ^
fs/nfsd/filecache.c:842:3: error: call to undeclared function 'nfs_localio_invalidate_clients'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
842 | nfs_localio_invalidate_clients(&nn->local_clients,
| ^
fs/nfsd/filecache.c:842:39: error: no member named 'local_clients' in 'struct nfsd_net'
842 | nfs_localio_invalidate_clients(&nn->local_clients,
| ~~ ^
>> fs/nfsd/filecache.c:843:18: error: no member named 'local_clients_lock' in 'struct nfsd_net'
843 | &nn->local_clients_lock);
| ~~ ^
5 warnings and 3 errors generated.
vim +843 fs/nfsd/filecache.c
824
825 /**
826 * __nfsd_file_cache_purge: clean out the cache for shutdown
827 * @net: net-namespace to shut down the cache (may be NULL)
828 *
829 * Walk the nfsd_file cache and close out any that match @net. If @net is NULL,
830 * then close out everything. Called when an nfsd instance is being shut down,
831 * and when the exports table is flushed.
832 */
833 static void
834 __nfsd_file_cache_purge(struct net *net)
835 {
836 struct rhashtable_iter iter;
837 struct nfsd_file *nf;
838 LIST_HEAD(dispose);
839
840 if (net) {
841 struct nfsd_net *nn = net_generic(net, nfsd_net_id);
842 nfs_localio_invalidate_clients(&nn->local_clients,
> 843 &nn->local_clients_lock);
844 }
845
846 rhltable_walk_enter(&nfsd_file_rhltable, &iter);
847 do {
848 rhashtable_walk_start(&iter);
849
850 nf = rhashtable_walk_next(&iter);
851 while (!IS_ERR_OR_NULL(nf)) {
852 if (!net || nf->nf_net == net)
853 nfsd_file_cond_queue(nf, &dispose);
854 nf = rhashtable_walk_next(&iter);
855 }
856
857 rhashtable_walk_stop(&iter);
858 } while (nf == ERR_PTR(-EAGAIN));
859 rhashtable_walk_exit(&iter);
860
861 nfsd_file_dispose_list(&dispose);
862 }
863
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-03 5:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-03 5:35 [snitzer:nfs-localio-for-next 25/26] fs/nfsd/filecache.c:843:18: error: no member named 'local_clients_lock' in 'struct nfsd_net' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.