mips: fix vdso32 build, again
PATCH 1/1 mips: fix vdso32 build, again
The generic vdso support adds the same #if hack in two places, asm/vdso/vdso.h and config-n32-o32-env.c, but only the second is actually used. The result lacks the BUILD_VDSO32_64 macro, and that triggers a build error:
./include/linux/page-flags-layout.h:95:2: error: #error "Not enough bits in page flags"
Move the macro into the other place, and remove the duplicated bits.
---
Please fold into the vdso patch
--- arch/mips/include/asm/vdso/vdso.h | 11 ----------- arch/mips/vdso/config-n32-o32-env.c | 1 + 2 files changed, 1 insertion(+), 11 deletions(-)
arch/mips/include/asm/vdso/vdso.h +0 -11
@@ -6,17 +6,6 @@#include <asm/sgidefs.h> -#if _MIPS_SIM != _MIPS_SIM_ABI64 && defined(CONFIG_64BIT ) - -/* Building 32-bit VDSO for the 64-bit kernel. Fake a 32-bit Kconfig. */ -#define BUILD_VDSO32_64 -#undef CONFIG_64BIT -#define CONFIG_32BIT 1 -#ifndef __ASSEMBLY__ -#include <asm-generic/atomic64.h> -#endif -#endif -#ifndef __ASSEMBLY__#include <asm/asm.h>
arch/mips/vdso/config-n32-o32-env.c +1 -0
@@ -12,6 +12,7 @@#define CONFIG_32BIT 1#define CONFIG_GENERIC_ATOMIC64 1 +#define BUILD_VDSO32_64 #endif
Signature · 1 line
2.20.0
Paul Burton
AppliedHello,
Quoted 9 lines · Arnd Bergmann
The generic vdso support adds the same #if hack in two places,
asm/vdso/vdso.handconfig-n32-o32-env.c, but only the second is actually used. The result lacks theBUILD_VDSO32_64macro, and that triggers a build error:
./include/linux/page-flags-layout.h:95:2: error: #error "Not enough bits in page flags"Move the macro into the other place, and remove the duplicated bits.
Applied to mips-next.
Quoted 8 lines
commit
6393e6064486
https://git.kernel.org/mips/c/6393e6064486Reported-by Guenter Roeck <[email protected]>Fixes ee38d94a0ad8 ("page flags: prioritize kasan bits over last-cpuid")Fixes 24640f233b46 ("mips: Add support for generic vDSO")Signed-off-by Arnd Bergmann <[email protected]>Signed-off-by Paul Burton <[email protected]>
Thanks,
Paul
[ This message was auto-generated; if you believe anything is incorrect
then please email [email protected] to report it. ]