Skip to content

Commit 0dd0e94

Browse files
committed
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 <[email protected]>
1 parent ed8023a commit 0dd0e94

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

arch/um/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
generic-y += bpf_perf_event.h
32
generic-y += bug.h
43
generic-y += compat.h
54
generic-y += current.h

arch/um/include/asm/bpf_perf_event.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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>

0 commit comments

Comments
 (0)