diff options
author | Jeff Mahoney <jeffm@suse.com> | 2014-10-24 14:48:58 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2014-10-25 10:53:44 -0400 |
commit | 1679689231b52e2f8700dcb8bbcaf60367e1fc1a (patch) | |
tree | 82e6c6af289234efea6d56666f476d6db5145683 /Documentation/vDSO | |
parent | 6808a40dd953c3c109878c7426dc8797fcd71797 (diff) | |
download | linux-1679689231b52e2f8700dcb8bbcaf60367e1fc1a.tar.bz2 |
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 <jeffm@suse.com>
Acked-by: Peter Foley <pefoley2@pefoley.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/vDSO')
-rw-r--r-- | Documentation/vDSO/vdso_standalone_test_x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/vDSO/vdso_standalone_test_x86.c b/Documentation/vDSO/vdso_standalone_test_x86.c index d46240265c50..93b0ebf8cc38 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'; |