From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jlayton:kdevops 15/24] fs/nfsd/nfs4proc.c:3688:14: error: invalid application of 'sizeof' to an incomplete type 'const struct nfsd4_operation[]'
Date: Tue, 12 Mar 2024 08:57:55 +0800 [thread overview]
Message-ID: <202403120808.wkgN6axS-lkp@intel.com> (raw)
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
reply other threads:[~2024-03-12 0:58 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=202403120808.wkgN6axS-lkp@intel.com \
--to=lkp@intel.com \
--cc=jlayton@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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).