[djwong-xfs:vectorized-scrub 256/299] fs/xfs/./xfs_trace.h:1382:4: error: 'XFS_RTLOCK_REFCOUNT' undeclared

From: kernel test robot
Date: Mon Aug 09 2021 - 04:44:47 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub
head: 5fc557f566b4196e3c3c77271840ba84bf158d3b
commit: 5d2e45fad9285b7493f406961902c3ee4141dc57 [256/299] xfs: wire up realtime refcount btree cursors
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=5d2e45fad9285b7493f406961902c3ee4141dc57
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 5d2e45fad9285b7493f406961902c3ee4141dc57
# 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:4607,
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:1395:2: note: in expansion of macro 'TP_printk'
1395 | TP_printk("dev %d:%d flags %s",
| ^~~~~~~~~
fs/xfs/./xfs_trace.h:1397:5: note: in expansion of macro '__print_flags'
1397 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~
fs/xfs/./xfs_trace.h:1397:40: note: in expansion of macro 'XFS_RTLOCK_STRINGS'
1397 | __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:1395:2: note: in expansion of macro 'TP_printk'
1395 | TP_printk("dev %d:%d flags %s",
| ^~~~~~~~~
fs/xfs/./xfs_trace.h:1397:5: note: in expansion of macro '__print_flags'
1397 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~
fs/xfs/./xfs_trace.h:1397:40: note: in expansion of macro 'XFS_RTLOCK_STRINGS'
1397 | __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:1395:2: note: in expansion of macro 'TP_printk'
1395 | TP_printk("dev %d:%d flags %s",
| ^~~~~~~~~
fs/xfs/./xfs_trace.h:1397:5: note: in expansion of macro '__print_flags'
1397 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~
fs/xfs/./xfs_trace.h:1397:40: note: in expansion of macro 'XFS_RTLOCK_STRINGS'
1397 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~~~~~~
>> fs/xfs/./xfs_trace.h:1382:4: error: 'XFS_RTLOCK_REFCOUNT' undeclared (first use in this function)
1382 | { XFS_RTLOCK_REFCOUNT, "refc" }
| ^~~~~~~~~~~~~~~~~~~
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:1395:2: note: in expansion of macro 'TP_printk'
1395 | TP_printk("dev %d:%d flags %s",
| ^~~~~~~~~
fs/xfs/./xfs_trace.h:1397:5: note: in expansion of macro '__print_flags'
1397 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~
fs/xfs/./xfs_trace.h:1397:40: note: in expansion of macro 'XFS_RTLOCK_STRINGS'
1397 | __print_flags(__entry->flags, "|", XFS_RTLOCK_STRINGS))
| ^~~~~~~~~~~~~~~~~~


vim +/XFS_RTLOCK_REFCOUNT +1382 fs/xfs/./xfs_trace.h

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

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

Attachment: .config.gz
Description: application/gzip