[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201102122.s9aPc0vp-lkp@intel.com>
Date: Mon, 10 Jan 2022 21:32:57 +0800
From: kernel test robot <lkp@...el.com>
To: Kajol Jain <kjain@...ux.ibm.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Madhavan Srinivasan <maddy@...ux.ibm.com>
Subject: [acme:perf/core 45/46] include/uapi/linux/perf_event.h:1339:18:
error: 'PERF_MEM_HOPS_2' undeclared; did you mean 'PERF_MEM_HOPS_0'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/core
head: 65f8d08cf838df3c3d728cdef908090237931496
commit: af2b24f228a0373ac65eb7a502e0bc31e2c0269d [45/46] perf powerpc: Add data source encodings for power10 platform
config: powerpc64-buildonly-randconfig-r003-20220109 (https://download.01.org/0day-ci/archive/20220110/202201102122.s9aPc0vp-lkp@intel.com/config)
compiler: powerpc64-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/acme/linux.git/commit/?id=af2b24f228a0373ac65eb7a502e0bc31e2c0269d
git remote add acme https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git
git fetch --no-tags acme perf/core
git checkout af2b24f228a0373ac65eb7a502e0bc31e2c0269d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/perf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/perf_event.h:17,
from arch/powerpc/perf/isa207-common.h:12,
from arch/powerpc/perf/isa207-common.c:9:
arch/powerpc/perf/isa207-common.c: In function 'isa207_find_source':
>> include/uapi/linux/perf_event.h:1339:18: error: 'PERF_MEM_HOPS_2' undeclared (first use in this function); did you mean 'PERF_MEM_HOPS_0'?
1339 | (((__u64)PERF_MEM_##a##_##s) << PERF_MEM_##a##_SHIFT)
| ^~~~~~~~~
arch/powerpc/perf/isa207-common.h:273:41: note: in expansion of macro 'PERF_MEM_S'
273 | #define P(a, b) PERF_MEM_S(a, b)
| ^~~~~~~~~~
arch/powerpc/perf/isa207-common.c:240:79: note: in expansion of macro 'P'
240 | ret |= PH(LVL, REM_RAM1) | REM | LEVEL(RAM) | P(HOPS, 2);
| ^
include/uapi/linux/perf_event.h:1339:18: note: each undeclared identifier is reported only once for each function it appears in
1339 | (((__u64)PERF_MEM_##a##_##s) << PERF_MEM_##a##_SHIFT)
| ^~~~~~~~~
arch/powerpc/perf/isa207-common.h:273:41: note: in expansion of macro 'PERF_MEM_S'
273 | #define P(a, b) PERF_MEM_S(a, b)
| ^~~~~~~~~~
arch/powerpc/perf/isa207-common.c:240:79: note: in expansion of macro 'P'
240 | ret |= PH(LVL, REM_RAM1) | REM | LEVEL(RAM) | P(HOPS, 2);
| ^
>> include/uapi/linux/perf_event.h:1339:18: error: 'PERF_MEM_HOPS_3' undeclared (first use in this function); did you mean 'PERF_MEM_HOPS_0'?
1339 | (((__u64)PERF_MEM_##a##_##s) << PERF_MEM_##a##_SHIFT)
| ^~~~~~~~~
arch/powerpc/perf/isa207-common.h:273:41: note: in expansion of macro 'PERF_MEM_S'
273 | #define P(a, b) PERF_MEM_S(a, b)
| ^~~~~~~~~~
arch/powerpc/perf/isa207-common.c:244:79: note: in expansion of macro 'P'
244 | ret |= PH(LVL, REM_RAM2) | REM | LEVEL(RAM) | P(HOPS, 3);
| ^
vim +1339 include/uapi/linux/perf_event.h
fec9cc6175d0ec Kajol Jain 2021-10-06 1337
d6be9ad6c960f4 Stephane Eranian 2013-01-24 1338 #define PERF_MEM_S(a, s) \
0d9dfc23f4d8c1 Mike Frysinger 2014-01-23 @1339 (((__u64)PERF_MEM_##a##_##s) << PERF_MEM_##a##_SHIFT)
d6be9ad6c960f4 Stephane Eranian 2013-01-24 1340
:::::: The code at line 1339 was first introduced by commit
:::::: 0d9dfc23f4d8c17365c84eb48ecca28b963ba192 uapi: convert u64 to __u64 in exported headers
:::::: TO: Mike Frysinger <vapier@...too.org>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists