Messages in this thread | ![/](/images/icornerl.gif) | | Date | Tue, 20 Jul 2021 08:16:21 +0800 | From | kernel test robot <> | Subject | ./runqslower.h:7:8: error: redefinition of 'event' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2734d6c1b1a089fb593ef6a23d4b70903526fe0c commit: 4bba4c4bb09ad4a2b70836725e08439c86d8f9e4 tools headers: Get tools's linux/compiler.h closer to the kernel's date: 7 months ago config: i386-randconfig-h002-20200226-kselftests (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/torvalds/linux.git/commit/?id=4bba4c4bb09ad4a2b70836725e08439c86d8f9e4 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 4bba4c4bb09ad4a2b70836725e08439c86d8f9e4 # save the attached .config to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash -C tools/testing/selftests/bpf install
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from runqslower.bpf.c:5: >> ./runqslower.h:7:8: error: redefinition of 'event' struct event { ^ tools/testing/selftests/bpf/tools/vmlinux.h:113262:8: note: previous definition is here struct event { ^ >> runqslower.bpf.c:86:8: error: no member named 'pid' in 'struct event' event.pid = pid; ~~~~~ ^ >> runqslower.bpf.c:87:8: error: no member named 'delta_us' in 'struct event' event.delta_us = delta_us; ~~~~~ ^ >> runqslower.bpf.c:88:30: error: no member named 'task' in 'struct event' bpf_get_current_comm(&event.task, sizeof(event.task)); ~~~~~ ^ runqslower.bpf.c:88:49: error: no member named 'task' in 'struct event' bpf_get_current_comm(&event.task, sizeof(event.task)); ~~~~~ ^ 5 errors generated.
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | ![\](/images/icornerr.gif) |