[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202602041851.8AI0nchL-lkp@intel.com>
Date: Wed, 4 Feb 2026 18:26:14 +0800
From: kernel test robot <lkp@...el.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Chuck Lever <chuck.lever@...cle.com>, NeilBrown <neil@...wn.name>,
Jeff Layton <jlayton@...nel.org>, linux-nfs@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Cc: oe-kbuild-all@...ts.linux.dev, Olga Kornievskaia <okorniev@...hat.com>,
Dai Ngo <Dai.Ngo@...cle.com>, Tom Talpey <tom@...pey.com>,
Trond Myklebust <trondmy@...nel.org>,
Anna Schumaker <anna@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: Re: [PATCH v1 1/1] sunrpc: Fix compilation error (`make W=1`) when
dprintk() is no-op
Hi Andy,
kernel test robot noticed the following build warnings:
[auto build test WARNING on trondmy-nfs/linux-next]
[also build test WARNING on linus/master v6.19-rc8 next-20260203]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/sunrpc-Fix-compilation-error-make-W-1-when-dprintk-is-no-op/20260204-091033
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
patch link: https://lore.kernel.org/r/20260204010415.2149607-1-andriy.shevchenko%40linux.intel.com
patch subject: [PATCH v1 1/1] sunrpc: Fix compilation error (`make W=1`) when dprintk() is no-op
config: powerpc-randconfig-r131-20260204 (https://download.01.org/0day-ci/archive/20260204/202602041851.8AI0nchL-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260204/202602041851.8AI0nchL-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602041851.8AI0nchL-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> fs/nfs/getroot.c:90:17: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/getroot.c:90:17: sparse: void
fs/nfs/getroot.c:90:17: sparse: int
fs/nfs/getroot.c:98:17: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/getroot.c:98:17: sparse: void
fs/nfs/getroot.c:98:17: sparse: int
fs/nfs/getroot.c:114:17: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/getroot.c:114:17: sparse: void
fs/nfs/getroot.c:114:17: sparse: int
--
fs/nfs/namespace.c:381:1: sparse: sparse: bad integer constant expression
fs/nfs/namespace.c:381:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/namespace.c:382:1: sparse: sparse: bad integer constant expression
fs/nfs/namespace.c:382:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
>> fs/nfs/namespace.c:304:17: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/namespace.c:304:17: sparse: void
fs/nfs/namespace.c:304:17: sparse: int
--
fs/nfs/nfs4super.c:313:1: sparse: sparse: bad integer constant expression
fs/nfs/nfs4super.c:313:1: sparse: sparse: static assertion failed: "MODULE_INFO(description, ...) contains embedded NUL byte"
fs/nfs/nfs4super.c:314:1: sparse: sparse: bad integer constant expression
fs/nfs/nfs4super.c:314:1: sparse: sparse: static assertion failed: "MODULE_INFO(file, ...) contains embedded NUL byte"
fs/nfs/nfs4super.c:314:1: sparse: sparse: bad integer constant expression
fs/nfs/nfs4super.c:314:1: sparse: sparse: static assertion failed: "MODULE_INFO(license, ...) contains embedded NUL byte"
>> fs/nfs/nfs4super.c:232:17: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/nfs4super.c:232:17: sparse: void
fs/nfs/nfs4super.c:232:17: sparse: int
fs/nfs/nfs4super.c:255:17: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/nfs4super.c:255:17: sparse: void
fs/nfs/nfs4super.c:255:17: sparse: int
--
fs/nfs/super.c:1436:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1436:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1437:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1437:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1438:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1438:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
fs/nfs/super.c:1440:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1440:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1441:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1441:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1442:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1442:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1444:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1444:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
fs/nfs/super.c:1446:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1446:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1447:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1447:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
fs/nfs/super.c:1449:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1449:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1450:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1450:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
fs/nfs/super.c:1452:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1452:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1453:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1453:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
fs/nfs/super.c:1455:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1455:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
fs/nfs/super.c:1457:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1457:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1458:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1458:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
fs/nfs/super.c:1462:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1462:1: sparse: sparse: static assertion failed: "MODULE_INFO(parmtype, ...) contains embedded NUL byte"
fs/nfs/super.c:1463:1: sparse: sparse: bad integer constant expression
fs/nfs/super.c:1463:1: sparse: sparse: static assertion failed: "MODULE_INFO(parm, ...) contains embedded NUL byte"
>> fs/nfs/super.c:1325:17: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/super.c:1325:17: sparse: void
fs/nfs/super.c:1325:17: sparse: int
fs/nfs/super.c:1351:17: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/super.c:1351:17: sparse: void
fs/nfs/super.c:1351:17: sparse: int
--
fs/nfs/fs_context.c:1773:1: sparse: sparse: bad integer constant expression
fs/nfs/fs_context.c:1773:1: sparse: sparse: static assertion failed: "MODULE_INFO(alias, ...) contains embedded NUL byte"
fs/nfs/fs_context.c:1785:1: sparse: sparse: bad integer constant expression
fs/nfs/fs_context.c:1785:1: sparse: sparse: static assertion failed: "MODULE_INFO(alias, ...) contains embedded NUL byte"
fs/nfs/fs_context.c:1786:1: sparse: sparse: bad integer constant expression
fs/nfs/fs_context.c:1786:1: sparse: sparse: static assertion failed: "MODULE_INFO(alias, ...) contains embedded NUL byte"
>> fs/nfs/fs_context.c:1119:9: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/fs_context.c:1119:9: sparse: void
fs/nfs/fs_context.c:1119:9: sparse: int
fs/nfs/fs_context.c:1122:9: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/fs_context.c:1122:9: sparse: void
fs/nfs/fs_context.c:1122:9: sparse: int
fs/nfs/fs_context.c:1125:9: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/fs_context.c:1125:9: sparse: void
fs/nfs/fs_context.c:1125:9: sparse: int
fs/nfs/fs_context.c:1590:9: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/fs_context.c:1590:9: sparse: void
fs/nfs/fs_context.c:1590:9: sparse: int
fs/nfs/fs_context.c:1604:9: sparse: sparse: incompatible types in conditional expression (different base types):
fs/nfs/fs_context.c:1604:9: sparse: void
fs/nfs/fs_context.c:1604:9: sparse: int
vim +90 fs/nfs/getroot.c
b09b9417d074e0 Trond Myklebust 2007-10-25 63
54ceac45159860 David Howells 2006-08-22 64 /*
6d26c5e4d83cd3 Li Lingfeng 2024-08-24 65 * get a root dentry from the root filehandle
54ceac45159860 David Howells 2006-08-22 66 */
62a55d088cd87d Scott Mayhew 2019-12-10 67 int nfs_get_root(struct super_block *s, struct fs_context *fc)
54ceac45159860 David Howells 2006-08-22 68 {
62a55d088cd87d Scott Mayhew 2019-12-10 69 struct nfs_fs_context *ctx = nfs_fc2context(fc);
eae00c5d6e48cc Scott Mayhew 2021-06-22 70 struct nfs_server *server = NFS_SB(s), *clone_server;
54ceac45159860 David Howells 2006-08-22 71 struct nfs_fsinfo fsinfo;
62a55d088cd87d Scott Mayhew 2019-12-10 72 struct dentry *root;
54ceac45159860 David Howells 2006-08-22 73 struct inode *inode;
62a55d088cd87d Scott Mayhew 2019-12-10 74 char *name;
62a55d088cd87d Scott Mayhew 2019-12-10 75 int error = -ENOMEM;
779df6a5480f13 Scott Mayhew 2020-03-03 76 unsigned long kflags = 0, kflags_out = 0;
54ceac45159860 David Howells 2006-08-22 77
62a55d088cd87d Scott Mayhew 2019-12-10 78 name = kstrdup(fc->source, GFP_KERNEL);
b1942c5f8cf3be Al Viro 2011-03-16 79 if (!name)
62a55d088cd87d Scott Mayhew 2019-12-10 80 goto out;
b1942c5f8cf3be Al Viro 2011-03-16 81
54ceac45159860 David Howells 2006-08-22 82 /* get the actual root for this mount */
d755ad8dc752d4 Anna Schumaker 2021-10-22 83 fsinfo.fattr = nfs_alloc_fattr_with_label(server);
62a55d088cd87d Scott Mayhew 2019-12-10 84 if (fsinfo.fattr == NULL)
62a55d088cd87d Scott Mayhew 2019-12-10 85 goto out_name;
54ceac45159860 David Howells 2006-08-22 86
62a55d088cd87d Scott Mayhew 2019-12-10 87 error = server->nfs_client->rpc_ops->getroot(server, ctx->mntfh, &fsinfo);
54ceac45159860 David Howells 2006-08-22 88 if (error < 0) {
54ceac45159860 David Howells 2006-08-22 89 dprintk("nfs_get_root: getattr error = %d\n", -error);
ce8866f0913ff1 Scott Mayhew 2019-12-10 @90 nfs_errorf(fc, "NFS: Couldn't getattr on root");
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists