* [jlayton:kdevops 15/24] fs/nfsd/nfs4proc.c:3688:14: error: invalid application of 'sizeof' to an incomplete type 'const struct nfsd4_operation[]'
@ 2024-03-12 0:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-12 0:57 UTC (permalink / raw)
To: Jeff Layton; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git kdevops
head: bcf256c81b0b6e8d045b86a7dd8cad6835f141d0
commit: 72c7e2439c6031dd40440f2d3e17c06afee34bea [15/24] nfsd: wire up GET_DIR_DELEGATION handling
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20240312/202403120808.wkgN6axS-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240312/202403120808.wkgN6axS-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/202403120808.wkgN6axS-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/nfsd/nfs4proc.c:3517:14: error: use of undeclared identifier 'nfsd4_get_dir_delegation'
3517 | .op_func = nfsd4_get_dir_delegation,
| ^
>> fs/nfsd/nfs4proc.c:3688:14: error: invalid application of 'sizeof' to an incomplete type 'const struct nfsd4_operation[]'
3688 | if (opnum < ARRAY_SIZE(nfsd4_ops))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~
fs/nfsd/nfs4proc.c:3209:37: warning: tentative array definition assumed to have one element
3209 | static const struct nfsd4_operation nfsd4_ops[] = {
| ^
1 warning and 2 errors generated.
vim +3688 fs/nfsd/nfs4proc.c
07d1f8020738ba J. Bruce Fields 2014-03-06 3685
f1c7f79b6ab4f7 Adrian Bunk 2008-08-08 3686 static const char *nfsd4_op_name(unsigned opnum)
b001a1b6aa9609 Benny Halevy 2008-07-02 3687 {
b001a1b6aa9609 Benny Halevy 2008-07-02 @3688 if (opnum < ARRAY_SIZE(nfsd4_ops))
b001a1b6aa9609 Benny Halevy 2008-07-02 3689 return nfsd4_ops[opnum].op_name;
b001a1b6aa9609 Benny Halevy 2008-07-02 3690 return "unknown_operation";
b001a1b6aa9609 Benny Halevy 2008-07-02 3691 }
b001a1b6aa9609 Benny Halevy 2008-07-02 3692
:::::: The code at line 3688 was first introduced by commit
:::::: b001a1b6aa960949a24c2cdc28257dfcc9428d74 nfsd: dprint operation names
:::::: TO: Benny Halevy <bhalevy@panasas.com>
:::::: CC: J. Bruce Fields <bfields@citi.umich.edu>
--
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-03-12 0:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-12 0:57 [jlayton:kdevops 15/24] fs/nfsd/nfs4proc.c:3688:14: error: invalid application of 'sizeof' to an incomplete type 'const struct nfsd4_operation[]' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).