[Cluster-devel] [gfs2:trusted-xattr 2/2] fs/gfs2/xattr.c:73:6: warning: no previous prototype for function 'gfs2_eatype_valid'
kernel test robot
lkp at intel.com
Fri Nov 13 04:08:31 UTC 2020
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git trusted-xattr
head: 533310c3f8a7c01b324d68200d1578b416b681d3
commit: 533310c3f8a7c01b324d68200d1578b416b681d3 [2/2] gfs2: Add trusted xattr support
config: x86_64-randconfig-a005-20201111 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a7b65741441556d295079fc4f2391d99fd1c1111)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?id=533310c3f8a7c01b324d68200d1578b416b681d3
git remote add gfs2 https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
git fetch --no-tags gfs2 trusted-xattr
git checkout 533310c3f8a7c01b324d68200d1578b416b681d3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
>> fs/gfs2/xattr.c:73:6: warning: no previous prototype for function 'gfs2_eatype_valid' [-Wmissing-prototypes]
bool gfs2_eatype_valid(struct gfs2_sbd *sdp, u8 type)
^
fs/gfs2/xattr.c:73:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool gfs2_eatype_valid(struct gfs2_sbd *sdp, u8 type)
^
static
1 warning generated.
vim +/gfs2_eatype_valid +73 fs/gfs2/xattr.c
72
> 73 bool gfs2_eatype_valid(struct gfs2_sbd *sdp, u8 type)
74 {
75 switch(sdp->sd_sb.sb_fs_format) {
76 case GFS2_FORMAT_FS_MAX:
77 return true;
78
79 case GFS2_FORMAT_FS_MIN:
80 return type <= GFS2_EATYPE_SECURITY;
81
82 default:
83 return false;
84 }
85 }
86
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 35333 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20201113/725ac8e1/attachment.gz>
More information about the Cluster-devel
mailing list