]> git.baikalelectronics.ru Git - kernel.git/commit
vdso: don't require 64-bit math in standalone test
authorJeff Mahoney <jeffm@suse.com>
Fri, 24 Oct 2014 18:48:58 +0000 (14:48 -0400)
committerJonathan Corbet <corbet@lwn.net>
Sat, 25 Oct 2014 14:53:44 +0000 (10:53 -0400)
commitc7b74d248450b0e9eeff7af19757554ffd6a2099
tree82e6c6af289234efea6d56666f476d6db5145683
parent621054d9fb543cd41b3a36b8823172f0b1dc8a0d
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 131c0f710bf (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>
Documentation/vDSO/vdso_standalone_test_x86.c