From: kernel test robot <lkp@intel.com>
To: Mike Snitzer <snitzer@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [snitzer:nfs-localio-for-next 25/26] fs/nfsd/filecache.c:843:18: error: no member named 'local_clients_lock' in 'struct nfsd_net'
Date: Sun, 3 Nov 2024 13:35:34 +0800 [thread overview]
Message-ID: <202411031358.E7Kd2yiu-lkp@intel.com> (raw)
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
reply other threads:[~2024-11-03 5:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202411031358.E7Kd2yiu-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=snitzer@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.