usr/include: openrisc: don't HDRTEST bpf_perf_event.h
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 26 Apr 2025 03:08:15 +0000 (20:08 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 May 2025 06:03:17 +0000 (15:03 +0900)
Since openrisc does not support PERF_EVENTS, omit the HDRTEST of
bpf_perf_event.h for arch/openrisc/.

Fixes a build error:
usr/include/linux/bpf_perf_event.h:14:28: error: field 'regs' has incomplete type

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
usr/include/Makefile

index e3d6b03527fecc08e3b24c45502d575d7749be06..f02f41941b60c88d921da2b955076bbff7884c1c 100644 (file)
@@ -59,6 +59,10 @@ ifeq ($(SRCARCH),arc)
 no-header-test += linux/bpf_perf_event.h
 endif
 
+ifeq ($(SRCARCH),openrisc)
+no-header-test += linux/bpf_perf_event.h
+endif
+
 ifeq ($(SRCARCH),powerpc)
 no-header-test += linux/bpf_perf_event.h
 endif