posix-timers: Fix nanosleep_copyout() for CONFIG_COMPAT_32BIT_TIME
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Jun 2018 14:07:59 +0000 (16:07 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 19 Jun 2018 07:23:19 +0000 (09:23 +0200)
commit0fe2795516b9e1c59b58b02bdf8658698117ec4e
tree8952d7ec6168e25f40e3f9939fd2cce4037c888f
parenta26ed66c20f080c510fcf5bd448bce204f2c19d7
posix-timers: Fix nanosleep_copyout() for CONFIG_COMPAT_32BIT_TIME

Commit b5793b0d92c9 added support for building the nanosleep compat system
call on 32-bit architectures, but missed one change in nanosleep_copyout(),
which would trigger a BUG() as soon as any architecture is switched over to
use it.

Use the proper config symbol to enable the code path.

Fixes: Commit b5793b0d92c9 ("posix-timers: Make compat syscalls depend on CONFIG_COMPAT_32BIT_TIME")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: y2038@lists.linaro.org
Cc: Anna-Maria Gleixner <anna-maria@linutronix.de>
Cc: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Link: https://lkml.kernel.org/r/20180618140811.2998503-1-arnd@arndb.de
kernel/time/hrtimer.c