time/posix-stubs: Provide compat itimer supoprt for alpha
authorArnd Bergmann <arnd@arndb.de>
Sat, 7 Dec 2019 19:10:26 +0000 (20:10 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Jan 2020 17:20:23 +0000 (18:20 +0100)
commitf35deaff1b8eadb9897e4fb8b3edc7717f4ec6fa
tree089549ef3d8b86dde72ea54f16876e834805339a
parentc79f46a282390e0f5b306007bf7b11a46d529538
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 <linux@roeck-us.net>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191207191043.656328-1-arnd@arndb.de
kernel/time/posix-stubs.c