From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: progs/hid_bpf_helpers.h:9:38: error: declaration of 'struct hid_bpf_ctx' will not be visible outside of this function
Date: Sat, 22 Jul 2023 13:06:04 +0800 [thread overview]
Message-ID: <202307221250.TO1vcIdj-lkp@intel.com> (raw)
::::::
:::::: 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
reply other threads:[~2023-07-22 5:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202307221250.TO1vcIdj-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.