[linux-next:master 5081/8232] progs/hid.c:33:20: error: variable has incomplete type 'struct hid_bpf_ops'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0fc4bfab2cd45f9acb86c4f04b5191e114e901ed
commit: d7696738d66b4f1379fe77eef61cd1047d7f0773 [5081/8232] selftests/hid: convert the hid_bpf selftests with struct_ops
:::::: branch date: 27 hours ago
:::::: commit date: 12 days ago
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240627/202406270328.bscLN1IF-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/r/202406270328.bscLN1IF-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> progs/hid.c:33:20: error: variable has incomplete type 'struct hid_bpf_ops'
      33 | struct hid_bpf_ops first_event = {
         |                    ^
   progs/hid.c:33:8: note: forward declaration of 'struct hid_bpf_ops'
      33 | struct hid_bpf_ops first_event = {
         |        ^
   progs/hid.c:52:20: error: variable has incomplete type 'struct hid_bpf_ops'
      52 | struct hid_bpf_ops second_event = {
         |                    ^
   progs/hid.c:33:8: note: forward declaration of 'struct hid_bpf_ops'
      33 | struct hid_bpf_ops first_event = {
         |        ^
   progs/hid.c:70:20: error: variable has incomplete type 'struct hid_bpf_ops'
      70 | struct hid_bpf_ops change_report_id = {
         |                    ^
   progs/hid.c:33:8: note: forward declaration of 'struct hid_bpf_ops'
      33 | struct hid_bpf_ops first_event = {
         |        ^
   progs/hid.c:215:20: error: variable has incomplete type 'struct hid_bpf_ops'
     215 | struct hid_bpf_ops rdesc_fixup = {
         |                    ^
   progs/hid.c:33:8: note: forward declaration of 'struct hid_bpf_ops'
      33 | struct hid_bpf_ops first_event = {
         |        ^
   progs/hid.c:237:20: error: variable has incomplete type 'struct hid_bpf_ops'
     237 | struct hid_bpf_ops test_insert1 = {
         |                    ^
   progs/hid.c:33:8: note: forward declaration of 'struct hid_bpf_ops'
      33 | struct hid_bpf_ops first_event = {
         |        ^
   progs/hid.c:260:20: error: variable has incomplete type 'struct hid_bpf_ops'
     260 | struct hid_bpf_ops test_insert2 = {
         |                    ^
   progs/hid.c:33:8: note: forward declaration of 'struct hid_bpf_ops'
      33 | struct hid_bpf_ops first_event = {
         |        ^
   progs/hid.c:282:20: error: variable has incomplete type 'struct hid_bpf_ops'
     282 | struct hid_bpf_ops test_insert3 = {
         |                    ^
   progs/hid.c:33:8: note: forward declaration of 'struct hid_bpf_ops'
      33 | struct hid_bpf_ops first_event = {
         |        ^
   7 errors generated.


vim +33 tools/testing/selftests/hid/progs/hid.c

0330f725cc5b01 Benjamin Tissoires 2022-11-03  31  
d7696738d66b4f Benjamin Tissoires 2024-06-08  32  SEC(".struct_ops.link")
d7696738d66b4f Benjamin Tissoires 2024-06-08 @33  struct hid_bpf_ops first_event = {
d7696738d66b4f Benjamin Tissoires 2024-06-08  34  	.hid_device_event = (void *)hid_first_event,
d7696738d66b4f Benjamin Tissoires 2024-06-08  35  	.hid_id = 2,
d7696738d66b4f Benjamin Tissoires 2024-06-08  36  };
d7696738d66b4f Benjamin Tissoires 2024-06-08  37  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux