diff options
-rw-r--r-- | drivers/input/input-compat.c | 4 | ||||
-rw-r--r-- | drivers/input/input-compat.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/input-compat.c b/drivers/input/input-compat.c index e46a86776a6b..64ca7113ff28 100644 --- a/drivers/input/input-compat.c +++ b/drivers/input/input-compat.c | |||
@@ -17,7 +17,7 @@ | |||
17 | int input_event_from_user(const char __user *buffer, | 17 | int input_event_from_user(const char __user *buffer, |
18 | struct input_event *event) | 18 | struct input_event *event) |
19 | { | 19 | { |
20 | if (INPUT_COMPAT_TEST) { | 20 | if (INPUT_COMPAT_TEST && !COMPAT_USE_64BIT_TIME) { |
21 | struct input_event_compat compat_event; | 21 | struct input_event_compat compat_event; |
22 | 22 | ||
23 | if (copy_from_user(&compat_event, buffer, | 23 | if (copy_from_user(&compat_event, buffer, |
@@ -41,7 +41,7 @@ int input_event_from_user(const char __user *buffer, | |||
41 | int input_event_to_user(char __user *buffer, | 41 | int input_event_to_user(char __user *buffer, |
42 | const struct input_event *event) | 42 | const struct input_event *event) |
43 | { | 43 | { |
44 | if (INPUT_COMPAT_TEST) { | 44 | if (INPUT_COMPAT_TEST && !COMPAT_USE_64BIT_TIME) { |
45 | struct input_event_compat compat_event; | 45 | struct input_event_compat compat_event; |
46 | 46 | ||
47 | compat_event.time.tv_sec = event->time.tv_sec; | 47 | compat_event.time.tv_sec = event->time.tv_sec; |
diff --git a/drivers/input/input-compat.h b/drivers/input/input-compat.h index 22be27b424de..148f66fe3205 100644 --- a/drivers/input/input-compat.h +++ b/drivers/input/input-compat.h | |||
@@ -67,7 +67,7 @@ struct ff_effect_compat { | |||
67 | 67 | ||
68 | static inline size_t input_event_size(void) | 68 | static inline size_t input_event_size(void) |
69 | { | 69 | { |
70 | return INPUT_COMPAT_TEST ? | 70 | return (INPUT_COMPAT_TEST && !COMPAT_USE_64BIT_TIME) ? |
71 | sizeof(struct input_event_compat) : sizeof(struct input_event); | 71 | sizeof(struct input_event_compat) : sizeof(struct input_event); |
72 | } | 72 | } |
73 | 73 | ||