tree:
git://linux-nfs.org/~cel/cel-2.6.git cel-next
head: 6d589dcf10f53301db8d72c652e00e561e100428
commit: 2b535ecb464b0a6bee315ff8bf72f51a6da4e444 [1/3] NFSD: Fix sparse warning in
nfssvc.c
config: i386-randconfig-c003-20201217 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add cel-cel-2.6
git://linux-nfs.org/~cel/cel-2.6.git
git fetch --no-tags cel-cel-2.6 cel-next
git checkout 2b535ecb464b0a6bee315ff8bf72f51a6da4e444
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/export.h:43,
from include/linux/linkage.h:7,
from include/linux/kernel.h:7,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/sched/signal.h:5,
from fs/nfsd/nfssvc.c:10:
fs/nfsd/xdr4.h: In function 'set_change_info':
> fs/nfsd/xdr4.h:750:13: error: 'struct svc_fh' has no
member named 'fh_pre_saved'
750 | BUG_ON(!fhp->fh_pre_saved);
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
fs/nfsd/xdr4.h:750:2: note: in expansion of macro 'BUG_ON'
750 | BUG_ON(!fhp->fh_pre_saved);
| ^~~~~~
In file included from fs/nfsd/nfssvc.c:31:
> fs/nfsd/xdr4.h:751:27: error: 'struct svc_fh' has no
member named 'fh_post_saved'
751 | cinfo->atomic =
(u32)(fhp->fh_post_saved && !fhp->fh_no_atomic_attr);
| ^~
> fs/nfsd/xdr4.h:753:28: error: 'struct svc_fh' has no
member named 'fh_pre_change'
753 | cinfo->before_change =
fhp->fh_pre_change;
| ^~
> fs/nfsd/xdr4.h:754:27: error: 'struct svc_fh' has no
member named 'fh_post_change'
754 | cinfo->after_change =
fhp->fh_post_change;
| ^~
vim +750 fs/nfsd/xdr4.h
^1da177e4c3f415 include/linux/nfsd/xdr4.h Linus Torvalds 2005-04-16 746
^1da177e4c3f415 include/linux/nfsd/xdr4.h Linus Torvalds 2005-04-16 747 static inline
void
^1da177e4c3f415 include/linux/nfsd/xdr4.h Linus Torvalds 2005-04-16 748
set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp)
^1da177e4c3f415 include/linux/nfsd/xdr4.h Linus Torvalds 2005-04-16 749 {
c1ac3ffcd0bc7e9 fs/nfsd/xdr4.h Neil Brown 2010-12-02 @750
BUG_ON(!fhp->fh_pre_saved);
716a8bc7f706eee fs/nfsd/xdr4.h Trond Myklebust 2020-11-30 @751
cinfo->atomic = (u32)(fhp->fh_post_saved && !fhp->fh_no_atomic_attr);
c1ac3ffcd0bc7e9 fs/nfsd/xdr4.h Neil Brown 2010-12-02 752
c654b8a9cba6002 include/linux/nfsd/xdr4.h J. Bruce Fields 2009-04-16 @753
cinfo->before_change = fhp->fh_pre_change;
c654b8a9cba6002 include/linux/nfsd/xdr4.h J. Bruce Fields 2009-04-16 @754
cinfo->after_change = fhp->fh_post_change;
c654b8a9cba6002 include/linux/nfsd/xdr4.h J. Bruce Fields 2009-04-16 755 }
^1da177e4c3f415 include/linux/nfsd/xdr4.h Linus Torvalds 2005-04-16 756
:::::: The code at line 750 was first introduced by commit
:::::: c1ac3ffcd0bc7e9617f62be8c7043d53ab84deac nfsd: Fix possible BUG_ON firing in
set_change_info
:::::: TO: Neil Brown <neilb(a)suse.de>
:::::: CC: J. Bruce Fields <bfields(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org