Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+9 -1
-1
arch/um/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - generic-y += bpf_perf_event.h 3 2 generic-y += bug.h 4 3 generic-y += compat.h 5 4 generic-y += current.h
+9
arch/um/include/asm/bpf_perf_event.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + 3 + /* 4 + * asm-generic/bpf_perf_event.h is part of the uapi headers, but since 5 + * arch/um has no uapi of its on, we can't use the "generic-y" 6 + * Kbuild rule to generate the wrapper 7 + */ 8 + 9 + #include <asm-generic/bpf_perf_event.h>