[cel:topic-nfsd-tracepoints 50/162] include/trace/../../fs/lockd/xdrtrace.h:35:19: error: 'NLM_DEADLCK' undeclared here (not in a function)

From: kernel test robot
Date: Wed Nov 17 2021 - 07:12:57 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux topic-nfsd-tracepoints
head: b6c4274cc47f0469a384be035e9f685deeb018c6
commit: 4f709b313a7165ea0c8d7324dd8c4f0bc58c071b [50/162] lockd: Infrastructure for lockd server-side XDR tracepoints
config: microblaze-buildonly-randconfig-r006-20211116 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 11.2.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/cel/linux.git/commit/?id=4f709b313a7165ea0c8d7324dd8c4f0bc58c071b
git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git fetch --no-tags cel topic-nfsd-tracepoints
git checkout 4f709b313a7165ea0c8d7324dd8c4f0bc58c071b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash fs/

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/lockd/xdrtrace.h:96,
from fs/lockd/xdrtrace.c:30:
>> include/trace/../../fs/lockd/xdrtrace.h:35:19: error: 'NLM_DEADLCK' undeclared here (not in a function)
35 | TRACE_DEFINE_ENUM(NLM_DEADLCK);
| ^~~~~~~~~~~
include/trace/trace_events.h:45:31: note: in definition of macro 'TRACE_DEFINE_ENUM'
45 | .eval_value = a \
| ^
>> include/trace/../../fs/lockd/xdrtrace.h:36:19: error: 'NLM_ROFS' undeclared here (not in a function)
36 | TRACE_DEFINE_ENUM(NLM_ROFS);
| ^~~~~~~~
include/trace/trace_events.h:45:31: note: in definition of macro 'TRACE_DEFINE_ENUM'
45 | .eval_value = a \
| ^
>> include/trace/../../fs/lockd/xdrtrace.h:37:19: error: 'NLM_STALE_FH' undeclared here (not in a function)
37 | TRACE_DEFINE_ENUM(NLM_STALE_FH);
| ^~~~~~~~~~~~
include/trace/trace_events.h:45:31: note: in definition of macro 'TRACE_DEFINE_ENUM'
45 | .eval_value = a \
| ^
>> include/trace/../../fs/lockd/xdrtrace.h:38:19: error: 'NLM_FBIG' undeclared here (not in a function)
38 | TRACE_DEFINE_ENUM(NLM_FBIG);
| ^~~~~~~~
include/trace/trace_events.h:45:31: note: in definition of macro 'TRACE_DEFINE_ENUM'
45 | .eval_value = a \
| ^
>> include/trace/../../fs/lockd/xdrtrace.h:39:19: error: 'NLM_FAILED' undeclared here (not in a function); did you mean 'MF_FAILED'?
39 | TRACE_DEFINE_ENUM(NLM_FAILED);
| ^~~~~~~~~~
include/trace/trace_events.h:45:31: note: in definition of macro 'TRACE_DEFINE_ENUM'
45 | .eval_value = a \
| ^


vim +/NLM_DEADLCK +35 include/trace/../../fs/lockd/xdrtrace.h

25
26 /**
27 ** Helpers
28 **/
29
30 TRACE_DEFINE_ENUM(NLM_LCK_GRANTED);
31 TRACE_DEFINE_ENUM(NLM_LCK_DENIED);
32 TRACE_DEFINE_ENUM(NLM_LCK_DENIED_NOLOCKS);
33 TRACE_DEFINE_ENUM(NLM_LCK_BLOCKED);
34 TRACE_DEFINE_ENUM(NLM_LCK_DENIED_GRACE_PERIOD);
> 35 TRACE_DEFINE_ENUM(NLM_DEADLCK);
> 36 TRACE_DEFINE_ENUM(NLM_ROFS);
> 37 TRACE_DEFINE_ENUM(NLM_STALE_FH);
> 38 TRACE_DEFINE_ENUM(NLM_FBIG);
> 39 TRACE_DEFINE_ENUM(NLM_FAILED);
40

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

Attachment: .config.gz
Description: application/gzip