Skip to content

Commit 99570c3

Browse files
committed
MIPS: vdso: Define BUILD_VDSO32 when building a 32bit kernel
The confinement of the 32bit specific VDSO functions missed to define BUILD_VDSO32 when building a 32bit MIPS kernel: arch/mips/vdso/vgettimeofday.c: In function __vdso_clock_gettime: arch/mips/vdso/vgettimeofday.c:17:9: error: implicit declaration of function __cvdso_clock_gettime32 arch/mips/vdso/vgettimeofday.c: In function __vdso_clock_getres: arch/mips/vdso/vgettimeofday.c:39:9: error: implicit declaration of function __cvdso_clock_getres_time32 Force the define for 32bit builds in the VDSO Makefile. Fixes: bf27984 ("lib/vdso: Build 32 bit specific functions in the right context") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Paul Burton <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5167c50 commit 99570c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/mips/vdso/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ ccflags-vdso := \
1818
$(filter -mno-loongson-%,$(KBUILD_CFLAGS)) \
1919
-D__VDSO__
2020

21+
ifndef CONFIG_64BIT
22+
ccflags-vdso += -DBUILD_VDSO32
23+
endif
24+
2125
ifdef CONFIG_CC_IS_CLANG
2226
ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS))
2327
endif

0 commit comments

Comments
 (0)