* [linux-next:master 5081/8232] progs/hid.c:33:20: error: variable has incomplete type 'struct hid_bpf_ops'
@ 2024-06-27 14:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-27 14:04 UTC (permalink / raw)
To: Benjamin Tissoires; +Cc: oe-kbuild-all, Linux Memory Management List
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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/r/202406270328.bscLN1IF-lkp@intel.com/
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-27 14:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-27 14:04 [linux-next:master 5081/8232] progs/hid.c:33:20: error: variable has incomplete type 'struct hid_bpf_ops' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox