All of lore.kernel.org
 help / color / mirror / Atom feed
* progs/hid_bpf_helpers.h:9:38: error: declaration of 'struct hid_bpf_ctx' will not be visible outside of this function
@ 2023-07-22  5:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-22  5:06 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Benjamin Tissoires <benjamin.tissoires@redhat.com>
CC: Jiri Kosina <jkosina@suse.cz>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d192f5382581d972c4ae1b4d72e0b59b34cadeb9
commit: e9d48abbce93e2138e37a695ba5931f3d3c9fdd9 kselftests: hid: fix missing headers_install step
date:   7 months ago
:::::: branch date: 12 hours ago
:::::: commit date: 7 months ago
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230722/202307221250.TO1vcIdj-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/202307221250.TO1vcIdj-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from progs/hid.c:6:
>> progs/hid_bpf_helpers.h:9:38: error: declaration of 'struct hid_bpf_ctx' will not be visible outside of this function [-Werror,-Wvisibility]
       9 | extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
         |                                      ^
>> progs/hid.c:23:35: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types]
      23 |         __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 3 /* size */);
         |                                          ^~~~~~~
   progs/hid_bpf_helpers.h:9:51: note: passing argument to parameter 'ctx' here
       9 | extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
         |                                                   ^
>> progs/hid.c:32:16: error: incomplete definition of type 'struct hid_bpf_ctx'
      32 |         return hid_ctx->size;
         |                ~~~~~~~^
   progs/hid_bpf_helpers.h:13:15: note: forward declaration of 'struct hid_bpf_ctx'
      13 | extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym;
         |               ^
   progs/hid.c:38:35: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types]
      38 |         __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 3 /* size */);
         |                                          ^~~~~~~
   progs/hid_bpf_helpers.h:9:51: note: passing argument to parameter 'ctx' here
       9 | extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
         |                                                   ^
>> progs/hid.c:53:27: error: use of undeclared identifier 'HID_BPF_FLAG_INSERT_HEAD'
      53 |                                           ctx->insert_head ? HID_BPF_FLAG_INSERT_HEAD :
         |                                                              ^
>> progs/hid.c:54:13: error: use of undeclared identifier 'HID_BPF_FLAG_NONE'
      54 |                                                              HID_BPF_FLAG_NONE);
         |                                                              ^
   progs/hid.c:131:32: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types]
     131 |         __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 4096 /* size */);
         |                                       ^~~~~~~
   progs/hid_bpf_helpers.h:9:51: note: passing argument to parameter 'ctx' here
       9 | extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
         |                                                   ^
   progs/hid.c:150:32: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types]
     150 |         __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 4 /* size */);
         |                                       ^~~~~~~
   progs/hid_bpf_helpers.h:9:51: note: passing argument to parameter 'ctx' here
       9 | extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
         |                                                   ^
   progs/hid.c:167:32: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types]
     167 |         __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 4 /* size */);
         |                                       ^~~~~~~
   progs/hid_bpf_helpers.h:9:51: note: passing argument to parameter 'ctx' here
       9 | extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
         |                                                   ^
   progs/hid.c:184:32: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types]
     184 |         __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 4 /* size */);
         |                                       ^~~~~~~
   progs/hid_bpf_helpers.h:9:51: note: passing argument to parameter 'ctx' here
       9 | extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
         |                                                   ^
   10 errors generated.

-- 
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:[~2023-07-22  5:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-22  5:06 progs/hid_bpf_helpers.h:9:38: error: declaration of 'struct hid_bpf_ctx' will not be visible outside of this function 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.