Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf arm64: Add missing -I for tools/arch/arm64/include/ to find asm/sysreg.h when building arm_spe.h

This cures a current problem where tools/perf/util/arm-spe.c isn't
finding a ARM64 specific asm header, so lets add it for now to make
progress.

Adding a .o specific rule seems clunky, lets try and find if this is
really the right solution.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reported-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/lkml/20220811124825.GA868014@leoy-huanghe.lan
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Leo Yan and committed by
Arnaldo Carvalho de Melo
4a88c4ec 53e76d35

+1
+1
tools/perf/util/Build
··· 289 289 CFLAGS_parse-events.o += -Wno-redundant-decls 290 290 CFLAGS_expr.o += -Wno-redundant-decls 291 291 CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE 292 + CFLAGS_arm-spe.o += -I$(srctree)/tools/arch/arm64/include/ 292 293 293 294 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE 294 295 $(call rule_mkdir)