[djwong-xfs:vectorized-scrub 220/299] fs/xfs/./xfs_trace.h:1396:40: error: use of undeclared identifier 'XFS_RTLOCK_RMAP'; did you mean 'XFS_QLOCK_NORMAL'?
From: kernel test robot
Date: Sun Aug 08 2021 - 18:19:23 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub
head: 5fc557f566b4196e3c3c77271840ba84bf158d3b
commit: e9b6be225b87211b884bd877893a8b50fdb00236 [220/299] xfs: wire up rmap map and unmap to the realtime rmapbt
config: x86_64-randconfig-a004-20210804 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 41a6b50c25961addc04438b567ee1f4ef9e40f98)
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/commit/?id=e9b6be225b87211b884bd877893a8b50fdb00236
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs vectorized-scrub
git checkout e9b6be225b87211b884bd877893a8b50fdb00236
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
In file included from fs/xfs/xfs_trace.c:44:
In file included from fs/xfs/./xfs_trace.h:4558:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:427:
fs/xfs/./xfs_trace.h:1396:40: error: use of undeclared identifier 'XFS_RTLOCK_ALLOC'
__print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
^
fs/xfs/./xfs_trace.h:1380:4: note: expanded from macro 'XFS_RTLOCK_STRINGS'
{ XFS_RTLOCK_ALLOC, "rbm|rsum" }, \
^
>> fs/xfs/./xfs_trace.h:1396:40: error: use of undeclared identifier 'XFS_RTLOCK_RMAP'; did you mean 'XFS_QLOCK_NORMAL'?
fs/xfs/./xfs_trace.h:1381:4: note: expanded from macro 'XFS_RTLOCK_STRINGS'
{ XFS_RTLOCK_RMAP, "rmap" }
^
fs/xfs/xfs_dquot.h:102:2: note: 'XFS_QLOCK_NORMAL' declared here
XFS_QLOCK_NORMAL = 0,
^
2 errors generated.
vim +1396 fs/xfs/./xfs_trace.h
9e4c109ac82239 Christoph Hellwig 2011-10-11 1378
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1379 #define XFS_RTLOCK_STRINGS \
e9b6be225b8721 Darrick J. Wong 2021-01-05 1380 { XFS_RTLOCK_ALLOC, "rbm|rsum" }, \
e9b6be225b8721 Darrick J. Wong 2021-01-05 1381 { XFS_RTLOCK_RMAP, "rmap" }
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1382
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1383 DECLARE_EVENT_CLASS(xfs_rtlock_class,
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1384 TP_PROTO(struct xfs_mount *mp, unsigned int flags),
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1385 TP_ARGS(mp, flags),
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1386 TP_STRUCT__entry(
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1387 __field(dev_t, dev)
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1388 __field(unsigned int, flags)
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1389 ),
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1390 TP_fast_assign(
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1391 __entry->dev = mp->m_super->s_dev;
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1392 __entry->flags = flags;
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1393 ),
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1394 TP_printk("dev %d:%d flags %s",
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1395 MAJOR(__entry->dev), MINOR(__entry->dev),
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 @1396 __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1397 )
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1398 #define DEFINE_RTLOCK_EVENT(name) \
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1399 DEFINE_EVENT(xfs_rtlock_class, name, \
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1400 TP_PROTO(struct xfs_mount *mp, unsigned int flags), \
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1401 TP_ARGS(mp, flags))
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1402 DEFINE_RTLOCK_EVENT(xfs_rtlock);
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1403 DEFINE_RTLOCK_EVENT(xfs_rtunlock);
fe4bf9efa3c4ee Darrick J. Wong 2021-01-05 1404
:::::: The code at line 1396 was first introduced by commit
:::::: fe4bf9efa3c4ee2c158b68ec9074a112b4653389 xfs: refactor realtime inode locking
:::::: TO: Darrick J. Wong <djwong@xxxxxxxxxx>
:::::: CC: Darrick J. Wong <djwong@xxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip