]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
kbuild: uapi: completely exclude linux/bpf_perf_event.h on nios2
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 27 Feb 2026 06:38:02 +0000 (07:38 +0100)
committerNicolas Schier <nsc@kernel.org>
Thu, 12 Mar 2026 11:48:07 +0000 (12:48 +0100)
This header is actually not buildable on nios. As nobody built nios2
with CONFIG_CC_CAN_LINK=y so far, this produced no errors.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Tested-by: Nicolas Schier <nsc@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260227-kbuild-uapi-libc-v1-4-c17de0d19776@weissschuh.net
Signed-off-by: Nicolas Schier <nsc@kernel.org>
usr/include/Makefile

index ae365d32269a501a412aeabcec84d2ab3184fcb7..a8619aa85c873f32d319c3d3249dd15eb831c7a5 100644 (file)
@@ -48,7 +48,7 @@ no-header-test += xen/privcmd.h
 
 # More headers are broken in some architectures
 
-ifneq ($(filter arc openrisc xtensa, $(SRCARCH)),)
+ifneq ($(filter arc openrisc xtensa nios2, $(SRCARCH)),)
 no-header-test += linux/bpf_perf_event.h
 endif
 
@@ -128,7 +128,6 @@ endif
 
 ifeq ($(SRCARCH),nios2)
 uses-libc += asm/ptrace.h
-uses-libc += linux/bpf_perf_event.h
 endif
 
 ifeq ($(SRCARCH),s390)