Skip to content

Commit 1679689

Browse files
jeffmahoneyJonathan Corbet
authored andcommitted
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 adb19fb (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>
1 parent 6808a40 commit 1679689

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Documentation/vDSO/vdso_standalone_test_x86.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static inline void linux_exit(int code)
6363
x86_syscall3(__NR_exit, code, 0, 0);
6464
}
6565

66-
void to_base10(char *lastdig, uint64_t n)
66+
void to_base10(char *lastdig, time_t n)
6767
{
6868
while (n) {
6969
*lastdig = (n % 10) + '0';

0 commit comments

Comments
 (0)