[djwong-xfs:vectorized-scrub 220/299] fs/xfs/./xfs_trace.h:1381:4: error: 'XFS_RTLOCK_RMAP' undeclared; did you mean 'XFS_QLOCK_NORMAL'?

From: kernel test robot
Date: Sun Aug 08 2021 - 10:49:53 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: i386-randconfig-c021-20210804 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# 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
make W=1 O=build_dir ARCH=i386 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 include/trace/define_trace.h:102,
from fs/xfs/xfs_trace.h:4558,
from fs/xfs/xfs_trace.c:44:
fs/xfs/./xfs_trace.h: In function 'trace_raw_output_xfs_rtlock_class':
fs/xfs/./xfs_trace.h:1380:4: error: 'XFS_RTLOCK_ALLOC' undeclared (first use in this function); did you mean 'XFS_RTBLOCKLOG'?
1380 | { XFS_RTLOCK_ALLOC, "rbm|rsum" }, \
| ^~~~~~~~~~~~~~~~
include/trace/trace_events.h:393:27: note: in definition of macro 'DECLARE_EVENT_CLASS'
393 | trace_event_printf(iter, print); \
| ^~~~~
fs/xfs/./xfs_trace.h:1394:2: note: in expansion of macro 'TP_printk'
1394 | TP_printk("dev %d:%d flags %s",
| ^~~~~~~~~
fs/xfs/./xfs_trace.h:1396:5: note: in expansion of macro '__print_flags'
1396 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~
fs/xfs/./xfs_trace.h:1396:40: note: in expansion of macro 'XFS_RTLOCK_STRINGS'
1396 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~~~~~~
fs/xfs/./xfs_trace.h:1380:4: note: each undeclared identifier is reported only once for each function it appears in
1380 | { XFS_RTLOCK_ALLOC, "rbm|rsum" }, \
| ^~~~~~~~~~~~~~~~
include/trace/trace_events.h:393:27: note: in definition of macro 'DECLARE_EVENT_CLASS'
393 | trace_event_printf(iter, print); \
| ^~~~~
fs/xfs/./xfs_trace.h:1394:2: note: in expansion of macro 'TP_printk'
1394 | TP_printk("dev %d:%d flags %s",
| ^~~~~~~~~
fs/xfs/./xfs_trace.h:1396:5: note: in expansion of macro '__print_flags'
1396 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~
fs/xfs/./xfs_trace.h:1396:40: note: in expansion of macro 'XFS_RTLOCK_STRINGS'
1396 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~~~~~~
>> fs/xfs/./xfs_trace.h:1381:4: error: 'XFS_RTLOCK_RMAP' undeclared (first use in this function); did you mean 'XFS_QLOCK_NORMAL'?
1381 | { XFS_RTLOCK_RMAP, "rmap" }
| ^~~~~~~~~~~~~~~
include/trace/trace_events.h:393:27: note: in definition of macro 'DECLARE_EVENT_CLASS'
393 | trace_event_printf(iter, print); \
| ^~~~~
fs/xfs/./xfs_trace.h:1394:2: note: in expansion of macro 'TP_printk'
1394 | TP_printk("dev %d:%d flags %s",
| ^~~~~~~~~
fs/xfs/./xfs_trace.h:1396:5: note: in expansion of macro '__print_flags'
1396 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~
fs/xfs/./xfs_trace.h:1396:40: note: in expansion of macro 'XFS_RTLOCK_STRINGS'
1396 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~~~~~~


vim +1381 fs/xfs/./xfs_trace.h

1378
1379 #define XFS_RTLOCK_STRINGS \
1380 { XFS_RTLOCK_ALLOC, "rbm|rsum" }, \
> 1381 { XFS_RTLOCK_RMAP, "rmap" }
1382

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip