[lkml]   [2020]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[tip: timers/urgent] time/posix-stubs: Provide compat itimer supoprt for alpha
The following commit has been merged into the timers/urgent branch of tip:

Commit-ID: f35deaff1b8eadb9897e4fb8b3edc7717f4ec6fa
Author: Arnd Bergmann <>
AuthorDate: Sat, 07 Dec 2019 20:10:26 +01:00
Committer: Thomas Gleixner <>
CommitterDate: Thu, 09 Jan 2020 18:20:23 +01:00

time/posix-stubs: Provide compat itimer supoprt for alpha

Using compat_sys_getitimer and compat_sys_setitimer on alpha
causes a link failure in the Alpha tinyconfig and other configurations
that turn off CONFIG_POSIX_TIMERS.

Use the same #ifdef check for the stub version as well.

Fixes: 4c22ea2b9120 ("y2038: use compat_{get,set}_itimer on alpha")
Reported-by: Guenter Roeck <>
Reported-by: kbuild test robot <>
Signed-off-by: Arnd Bergmann <>
Signed-off-by: Thomas Gleixner <>
Tested-by: Guenter Roeck <>
kernel/time/posix-stubs.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c
index 67df65f..20c65a7 100644
--- a/kernel/time/posix-stubs.c
+++ b/kernel/time/posix-stubs.c
@@ -151,6 +151,9 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags,

+#if defined(CONFIG_COMPAT) || defined(CONFIG_ALPHA)
 \ /
  Last update: 2020-01-09 18:28    [W:0.032 / U:4.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site