diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-05-13 20:13:55 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2024-07-10 15:23:30 +0300 |
commit | 0dd0e9437f8e500a384f12ec16bb407a49676147 (patch) | |
tree | f06caeb67285b6f4cdfb258d42ea0da4306e6aa1 | |
parent | ed8023ae9d79eeebf694751d5c290b72ef871dc0 (diff) | |
download | linux-0dd0e9437f8e500a384f12ec16bb407a49676147.tar.xz |
um: don't generate asm/bpf_perf_event.h
If we start validating the existence of the asm-generic side of
generated headers, this one causes a warning:
make[3]: *** No rule to make target 'arch/um/include/generated/asm/bpf_perf_event.h', needed by 'all'. Stop.
The problem is that the asm-generic header only exists for the uapi
variant, but arch/um has no uapi headers and instead uses the x86
userspace API.
Add a custom file with an explicit redirect to avoid this.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/um/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/um/include/asm/bpf_perf_event.h | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/arch/um/include/asm/Kbuild b/arch/um/include/asm/Kbuild index 6fe34779291a..6c583040537c 100644 --- a/arch/um/include/asm/Kbuild +++ b/arch/um/include/asm/Kbuild @@ -1,5 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -generic-y += bpf_perf_event.h generic-y += bug.h generic-y += compat.h generic-y += current.h diff --git a/arch/um/include/asm/bpf_perf_event.h b/arch/um/include/asm/bpf_perf_event.h new file mode 100644 index 000000000000..287221342d2c --- /dev/null +++ b/arch/um/include/asm/bpf_perf_event.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +/* + * asm-generic/bpf_perf_event.h is part of the uapi headers, but since + * arch/um has no uapi of its on, we can't use the "generic-y" + * Kbuild rule to generate the wrapper + */ + +#include <asm-generic/bpf_perf_event.h> |