Created
August 21, 2023 20:22
-
-
Save JustinStitt/b55b470f02e5bca1e0bee0966c86b398 to your computer and use it in GitHub Desktop.
warnings for make LLVM=1 allyesconfig kselftest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package alsa was not found in the pkg-config search path. | |
Perhaps you should add the directory containing `alsa.pc' | |
to the PKG_CONFIG_PATH environment variable | |
Package 'alsa', required by 'virtual:world', not found | |
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_bpf_helpers.h:18:15: error: declaration of 'enum hid_report_type' will not be visible outside of this function [-Werror,-Wvisibility] | |
18 | enum hid_report_type type, | |
| ^ | |
progs/hid_bpf_helpers.h:19:15: error: declaration of 'enum hid_class_request' will not be visible outside of this function [-Werror,-Wvisibility] | |
19 | enum hid_class_request reqtype) __ksym; | |
| ^ | |
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 */, 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:45:16: error: incomplete definition of type 'struct hid_bpf_ctx' | |
45 | 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:51:35: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types] | |
51 | __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:66:27: error: use of undeclared identifier 'HID_BPF_FLAG_INSERT_HEAD' | |
66 | ctx->insert_head ? HID_BPF_FLAG_INSERT_HEAD : | |
| ^ | |
progs/hid.c:67:13: error: use of undeclared identifier 'HID_BPF_FLAG_NONE' | |
67 | HID_BPF_FLAG_NONE); | |
| ^ | |
progs/hid.c:77:23: error: field has incomplete type 'enum hid_report_type' | |
77 | enum hid_report_type type; | |
| ^ | |
progs/hid.c:77:7: note: forward declaration of 'enum hid_report_type' | |
77 | enum hid_report_type type; | |
| ^ | |
progs/hid.c:144:32: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types] | |
144 | __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:163:32: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types] | |
163 | __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:180:32: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types] | |
180 | __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:197:32: error: incompatible pointer types passing 'struct hid_bpf_ctx *' to parameter of type 'struct hid_bpf_ctx *' [-Werror,-Wincompatible-pointer-types] | |
197 | __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, | |
| ^ | |
15 errors generated. | |
make[1]: *** [Makefile:227: /usr/local/google/home/justinstitt/playground/learning-to-build/linux/builds/kselftest-000/kselftest/hid/hid.bpf.o] Error 1 | |
x86_64/amx_test.c:224:6: warning: variable 'stage' set but not used [-Wunused-but-set-variable] | |
224 | int stage, ret; | |
| ^ | |
1 warning generated. | |
Makefile:14: warning: overriding recipe for target 'clean' | |
../lib.mk:160: warning: ignoring old recipe for target 'clean' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: I manually removed the following warning which appeared 60+ times:
../lib.mk:25: *** Specify CROSS_COMPILE or add '--target=' option to lib.mk. Stop.