From 60a16beedf37db82edf39346fdc9e3916ab41994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:02 +0100 Subject: [PATCH] kbuild: uapi: completely exclude linux/bpf_perf_event.h on nios2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier Acked-by: Arnd Bergmann Link: https://patch.msgid.link/20260227-kbuild-uapi-libc-v1-4-c17de0d19776@weissschuh.net Signed-off-by: Nicolas Schier --- usr/include/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index ae365d32269a..a8619aa85c87 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -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)