Skip to content

Commit f35deaf

Browse files
arndbKAGA-KOKO
authored andcommitted
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: 4c22ea2 ("y2038: use compat_{get,set}_itimer on alpha") Reported-by: Guenter Roeck <[email protected]> Reported-by: kbuild test robot <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c79f46a commit f35deaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernel/time/posix-stubs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags,
151151

152152
#ifdef CONFIG_COMPAT
153153
COMPAT_SYS_NI(timer_create);
154+
#endif
155+
156+
#if defined(CONFIG_COMPAT) || defined(CONFIG_ALPHA)
154157
COMPAT_SYS_NI(getitimer);
155158
COMPAT_SYS_NI(setitimer);
156159
#endif

0 commit comments

Comments
 (0)