tree:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
scrub-rtsummary
head: 30ed2e375306b1c5c8c622635a87595eec25a2d0
commit: 82cd493e2396b5c5269e297063b9851edd0e485b [5/56] xfs: create convenience wrappers
for quota reservations
config: c6x-randconfig-r031-20210115 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
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
#
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs scrub-rtsummary
git checkout 82cd493e2396b5c5269e297063b9851edd0e485b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x
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 fs/xfs/xfs_trace.c:25:
> fs/xfs/xfs_quota.h:171:1: error: redefinition of
'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct
xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of
'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from fs/xfs/libxfs/xfs_bmap.c:27:
> fs/xfs/xfs_quota.h:171:1: error: redefinition of
'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct
xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of
'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmap_del_extent_real':
fs/xfs/libxfs/xfs_bmap.c:5239:58: warning: suggest braces around empty body in an
'if' statement [-Wempty-body]
5239 | xfs_trans_mod_dquot_byino(tp, ip, qfield, (long)-nblks);
| ^
--
In file included from fs/xfs/xfs_ioctl.c:23:
> fs/xfs/xfs_quota.h:171:1: error: redefinition of
'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct
xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of
'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_ioctl.c: In function 'xfs_ioctl_setattr':
fs/xfs/xfs_ioctl.c:1438:20: warning: variable 'olddquot' set but not used
[-Wunused-but-set-variable]
1438 | struct xfs_dquot *olddquot = NULL;
| ^~~~~~~~
--
In file included from fs/xfs/xfs_iops.c:15:
> fs/xfs/xfs_quota.h:171:1: error: redefinition of
'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct
xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of
'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_iops.c: In function 'xfs_setattr_nonsize':
fs/xfs/xfs_iops.c:662:39: warning: variable 'olddquot2' set but not used
[-Wunused-but-set-variable]
662 | struct xfs_dquot *olddquot1 = NULL, *olddquot2 = NULL;
| ^~~~~~~~~
fs/xfs/xfs_iops.c:662:20: warning: variable 'olddquot1' set but not used
[-Wunused-but-set-variable]
662 | struct xfs_dquot *olddquot1 = NULL, *olddquot2 = NULL;
| ^~~~~~~~~
--
In file included from fs/xfs/xfs_super.c:31:
> fs/xfs/xfs_quota.h:171:1: error: redefinition of
'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct
xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of
'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_super.c: In function 'xfs_fs_statfs':
fs/xfs/xfs_super.c:835:28: warning: suggest braces around empty body in an 'if'
statement [-Wempty-body]
835 | xfs_qm_statvfs(ip, statp);
| ^
vim +/xfs_quota_reserve_blkres +171 fs/xfs/xfs_quota.h
165
166 #define xfs_trans_reserve_quota(tp, mp, ud, gd, pd, nb, ni, f) \
167 xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, pd, nb, ni, \
168 f | XFS_QMOPT_RES_REGBLKS)
169
170 static inline int
171 xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
172 unsigned int flags)
173 {
174 return xfs_trans_reserve_quota_nblks(NULL, ip, nblks, 0, flags);
175 }
176
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org