From: Jeff Mahoney Date: Fri, 24 Oct 2014 18:48:58 +0000 (-0400) Subject: vdso: don't require 64-bit math in standalone test X-Git-Tag: v3.18-rc3~27^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1679689231b52e2f8700dcb8bbcaf60367e1fc1a;p=~emulex%2Finfiniband.git vdso: don't require 64-bit math in standalone test The use of 64-bit math on i386 causes build failures: vdso_standalone_test_x86.c:(.text+0x101): undefined reference to `__umoddi3' vdso_standalone_test_x86.c:(.text+0x12d): undefined reference to `__udivdi3' Commit adb19fb66ee (Documentation: add makefiles for more targets) is now building this by default, so it's failing the kernel build entirely. Switching the declaration from uint64_t to time_t does the right thing and handles the x32 case automatically. Signed-off-by: Jeff Mahoney Acked-by: Peter Foley Signed-off-by: Jonathan Corbet --- diff --git a/Documentation/vDSO/vdso_standalone_test_x86.c b/Documentation/vDSO/vdso_standalone_test_x86.c index d46240265c5..93b0ebf8cc3 100644 --- a/Documentation/vDSO/vdso_standalone_test_x86.c +++ b/Documentation/vDSO/vdso_standalone_test_x86.c @@ -63,7 +63,7 @@ static inline void linux_exit(int code) x86_syscall3(__NR_exit, code, 0, 0); } -void to_base10(char *lastdig, uint64_t n) +void to_base10(char *lastdig, time_t n) { while (n) { *lastdig = (n % 10) + '0';