Re: [PATCH] usr/include: openrisc: don't HDRTEST bpf_perf_event.h
From: Masahiro Yamada
Date: Sat May 03 2025 - 12:01:55 EST
On Sat, Apr 26, 2025 at 12:08 PM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> 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
Where can I get openrisc compiler that enables CONFIG_CC_CAN_LINK?
> Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> Cc: Jonas Bonn <jonas@xxxxxxxxxxxx>
> Cc: Stefan Kristiansson <stefan.kristiansson@xxxxxxxxxxxxx>
> Cc: Stafford Horne <shorne@xxxxxxxxx>
> Cc: linux-openrisc@xxxxxxxxxxxxxxx
> Cc: linux-kbuild@xxxxxxxxxxxxxxx
> ---
> usr/include/Makefile | 4 ++++
> 1 file changed, 4 insertions(+)
>
> --- linux-next-20250424.orig/usr/include/Makefile
> +++ linux-next-20250424/usr/include/Makefile
> @@ -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
--
Best Regards
Masahiro Yamada