tree:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
scrub-rtsummary
head: 30ed2e375306b1c5c8c622635a87595eec25a2d0
commit: cb3f81457960adfaad61877b8c86e78e5b608bf3 [12/56] xfs: flush eof/cowblocks if we
can't reserve quota for file blocks
config: x86_64-randconfig-r025-20210115 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
d7bc3b7ce23b664d6620cdc32370a8614523ca2f)
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/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 cb3f81457960adfaad61877b8c86e78e5b608bf3
# 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(a)intel.com>
All errors (new ones prefixed by >>):
In file included from fs/xfs/xfs_trace.c:25:
> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
return
xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct
xfs_trans **' to parameter of type 'struct xfs_trans *'; remove &
[-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
3 errors generated.
--
In file included from fs/xfs/libxfs/xfs_attr.c:24:
> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
return
xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct
xfs_trans **' to parameter of type 'struct xfs_trans *'; remove &
[-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
> fs/xfs/libxfs/xfs_attr.c:470:41: error: incompatible pointer
types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans
*'; remove & [-Werror,-Wincompatible-pointer-types]
error
= xfs_trans_reserve_quota_nblks(&args->trans, dp,
^~~~~~~~~~~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
4 errors generated.
--
In file included from fs/xfs/libxfs/xfs_bmap.c:27:
> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
return
xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct
xfs_trans **' to parameter of type 'struct xfs_trans *'; remove &
[-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
> fs/xfs/libxfs/xfs_bmap.c:1090:40: error: incompatible pointer
types passing 'xfs_trans_t **' (aka 'struct xfs_trans **') to parameter of
type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, blks, 0, rsvd ?
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
4 errors generated.
--
In file included from fs/xfs/xfs_bmap_util.c:25:
> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
return
xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct
xfs_trans **' to parameter of type 'struct xfs_trans *'; remove &
[-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
> fs/xfs/xfs_bmap_util.c:822:41: error: incompatible pointer types
passing 'xfs_trans_t **' (aka 'struct xfs_trans **') to parameter of type
'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, qblocks, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
> fs/xfs/xfs_bmap_util.c:886:40: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
error =
xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
5 errors generated.
--
In file included from fs/xfs/xfs_iomap.c:26:
> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
return
xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct
xfs_trans **' to parameter of type 'struct xfs_trans *'; remove &
[-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
> fs/xfs/xfs_iomap.c:251:40: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
error =
xfs_trans_reserve_quota_nblks(&tp, ip, qblocks, 0, quota_flag,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
> fs/xfs/xfs_iomap.c:566:41: error: incompatible pointer types
passing 'xfs_trans_t **' (aka 'struct xfs_trans **') to parameter of type
'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
5 errors generated.
--
In file included from fs/xfs/xfs_reflink.c:27:
> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
return
xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct
xfs_trans **' to parameter of type 'struct xfs_trans *'; remove &
[-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
> fs/xfs/xfs_reflink.c:403:40: error: incompatible pointer types
passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *';
remove & [-Werror,-Wincompatible-pointer-types]
error =
xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_reflink.c:1099:41: error: incompatible pointer types passing 'struct
xfs_trans **' to parameter of type 'struct xfs_trans *'; remove &
[-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, qres, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
5 errors generated.
vim +175 fs/xfs/xfs_quota.h
170
171 static inline int
172 xfs_trans_unreserve_quota_nblks(struct xfs_trans *tp, struct xfs_inode *ip,
173 int64_t nblks, long ninos, unsigned int flags)
174 {
175 return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks,
-ninos, flags,
176 NULL);
177 }
178
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org