arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue
Marc Zyngier
maintainerPATCH 1/1 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.
--- arch/arm64/include/asm/sysreg.h | 1 + 1 file changed, 1 insertion(+)
arch/arm64/include/asm/sysreg.h +1 -0
@@ -12,6 +12,7 @@#include <linux/bits.h> #include <linux/stringify.h> #include <linux/kasan-tags.h> +#include <linux/kconfig.h> #include <asm/gpr-num.h>
Signature · 1 line
2.39.2
Quoted 9 lines · Marc Zyngier
Broonie reports that
fed55f49fad18("arm64: errata: Work around AmpereOne's erratumAC04_CPU_23") breaks one of the vdso selftests (vdso_test_chacha) as it indirectly dragsasm/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.hinasm/sysreg.h. It is the right thing to do, at least from the kernel perspective.
Quoted 8 lines
Reported-by Mark Brown <[email protected]>Signed-off-by Marc Zyngier <[email protected]>Fixes fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")Cc D Scott Phillips <[email protected]>Cc Catalin Marinas <[email protected]>Cc Oliver Upton <[email protected]>Cc Will Deacon <[email protected]>
Signature · 2 lines
Thanks, Oliver
Quoted 26 lines · Marc Zyngier
Broonie reports that
fed55f49fad18("arm64: errata: Work around AmpereOne's erratumAC04_CPU_23") breaks one of the vdso selftests (vdso_test_chacha) as it indirectly dragsasm/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.hinasm/sysreg.h. It is the right thing to do, at least from the kernel perspective.Reported-by Mark Brown <[email protected]>Signed-off-by Marc Zyngier <[email protected]>Fixes fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")Cc D Scott Phillips <[email protected]>Cc Catalin Marinas <[email protected]>Cc Oliver Upton <[email protected]>Cc Will Deacon <[email protected]>--- arch/arm64/include/asm/sysreg.h | 1 + 1 file changed, 1 insertion(+)arch/arm64/include/asm/sysreg.h +0
-0
arch/arm64/include/asm/sysreg.h line 17
Quoted 6 lines
arch/arm64/include/asm/sysreg.h +1
-0@@ -12,6 +12,7 @@#include <linux/bits.h> #include <linux/stringify.h> #include <linux/kasan-tags.h> +#include <linux/kconfig.h> #include <asm/gpr-num.h>
Marc, it will be quickest for you to take this as you also took the AC04_CPU_23 workaround:
Will
Quoted 10 lines · Marc Zyngier
Broonie reports that
fed55f49fad18("arm64: errata: Work around AmpereOne's erratumAC04_CPU_23") breaks one of the vdso selftests (vdso_test_chacha) as it indirectly dragsasm/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.hinasm/sysreg.h. It is the right thing to do, at least from the kernel perspective.[...]
Applied to next, thanks!
[1/1] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue
commit: 94d889713d8b8e3bb78e19a1bbe76e36e34e8113
Cheers,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.