arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue
authorMarc Zyngier <maz@kernel.org>
Fri, 23 May 2025 17:02:08 +0000 (18:02 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 30 May 2025 08:09:01 +0000 (09:09 +0100)
commit94d889713d8b8e3bb78e19a1bbe76e36e34e8113
tree1a84dcf49836e9dd0136b1a66d7429713bd6bf80
parent1b85d923ba8c9e6afaf19e26708411adde94fba8
arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue

Broonie reports that fed55f49fad18 ("arm64: errata: Work around
AmpereOne's erratum AC04_CPU_23") breaks one of the vdso selftests
(vdso_test_chacha) as it indirectly drags asm/sysreg.h.

It is rather unfortunate (and worrying) that userspace gets built
with non-UAPI headers. In any case, paper over the issue by dragging
linux/kconfig.h in asm/sysreg.h. It is the right thing to do, at
least from the kernel perspective.

Reported-by: Mark Brown <broonie@kernel.org>
Fixes: fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")
Link: https://lore.kernel.org/r/aDCDGZ-G-nCP3hJI@finisterre.sirena.org.uk
Cc: D Scott Phillips <scott@os.amperecomputing.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Will Deacon <will@kernel.org>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20250523170208.530818-1-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/sysreg.h