From: kernel test robot <lkp@intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Chuck Lever <chuck.lever@oracle.com>, NeilBrown <neil@brown.name>,
Jeff Layton <jlayton@kernel.org>,
linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
llvm@lists.linux.dev
Cc: oe-kbuild-all@lists.linux.dev,
Olga Kornievskaia <okorniev@redhat.com>,
Dai Ngo <Dai.Ngo@oracle.com>, Tom Talpey <tom@talpey.com>,
Trond Myklebust <trondmy@kernel.org>,
Anna Schumaker <anna@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
Nick Desaulniers <nick.desaulniers+lkml@gmail.com>,
Bill Wendling <morbo@google.com>,
Justin Stitt <justinstitt@google.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: Re: [PATCH v1 1/1] sunrpc: Fix compilation error (`make W=1`) when dprintk() is no-op
Date: Wed, 4 Feb 2026 18:26:14 +0800 [thread overview]
Message-ID: <202602041851.8AI0nchL-lkp@intel.com> (raw)
In-Reply-To: <20260204010415.2149607-1-andriy.shevchenko@linux.intel.com>
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@intel.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
prev parent reply other threads:[~2026-02-04 10:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 1:04 [PATCH v1 1/1] sunrpc: Fix compilation error (`make W=1`) when dprintk() is no-op Andy Shevchenko
2026-02-04 1:09 ` Andy Shevchenko
2026-02-04 7:53 ` Geert Uytterhoeven
2026-02-04 9:06 ` Andy Shevchenko
2026-02-04 9:47 ` Andy Shevchenko
2026-02-04 6:48 ` kernel test robot
2026-02-04 6:59 ` kernel test robot
2026-02-04 7:12 ` kernel test robot
2026-02-04 7:48 ` kernel test robot
2026-02-04 10:26 ` kernel test robot [this message]
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=202602041851.8AI0nchL-lkp@intel.com \
--to=lkp@intel.com \
--cc=Dai.Ngo@oracle.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=anna@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=jlayton@kernel.org \
--cc=justinstitt@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=morbo@google.com \
--cc=nathan@kernel.org \
--cc=neil@brown.name \
--cc=nick.desaulniers+lkml@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=okorniev@redhat.com \
--cc=tom@talpey.com \
--cc=trondmy@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.