summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-10-25 16:59:39 +0200
committerArnd Bergmann <arnd@arndb.de>2019-11-15 14:38:30 +0100
commit4c22ea2b91203564fdf392b3d3cae249b652a8ae (patch)
tree0149546ee2e287ef6ecd227b8a3dcac4725b1a30 /kernel/time
parentc1745f84be2657f5702388133551b759b9237f59 (diff)
downloadlinux-4c22ea2b91203564fdf392b3d3cae249b652a8ae.tar.gz
linux-4c22ea2b91203564fdf392b3d3cae249b652a8ae.tar.bz2
linux-4c22ea2b91203564fdf392b3d3cae249b652a8ae.zip
y2038: use compat_{get,set}_itimer on alpha
The itimer handling for the old alpha osf_setitimer/osf_getitimer system calls is identical to the compat version of getitimer/setitimer, so just use those directly. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/itimer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/itimer.c b/kernel/time/itimer.c
index c52ebb40b60b..4664c6addf69 100644
--- a/kernel/time/itimer.c
+++ b/kernel/time/itimer.c
@@ -111,7 +111,7 @@ SYSCALL_DEFINE2(getitimer, int, which, struct itimerval __user *, value)
return error;
}
-#ifdef CONFIG_COMPAT
+#if defined(CONFIG_COMPAT) || defined(CONFIG_ALPHA)
struct old_itimerval32 {
struct old_timeval32 it_interval;
struct old_timeval32 it_value;
@@ -324,7 +324,7 @@ SYSCALL_DEFINE3(setitimer, int, which, struct itimerval __user *, value,
return 0;
}
-#ifdef CONFIG_COMPAT
+#if defined(CONFIG_COMPAT) || defined(CONFIG_ALPHA)
static int get_old_itimerval32(struct itimerval *o, const struct old_itimerval32 __user *i)
{
struct old_itimerval32 v32;