All of lore.kernel.org
 help / color / mirror / Atom feed
* ./runqslower.h:7:8: error: redefinition of 'event'
@ 2021-07-20  0:16 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-20  0:16 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2089 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42831 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* ./runqslower.h:7:8: error: redefinition of 'event'
@ 2021-07-20  0:16 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-20  0:16 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2135 bytes --]

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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 42831 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-20  6:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-20  0:16 ./runqslower.h:7:8: error: redefinition of 'event' kernel test robot
2021-07-20  0:16 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.