Skip to content

Commit

Permalink
Input: input_event - fix the CONFIG_SPARC64 mixup
Browse files Browse the repository at this point in the history
Arnd Bergmann pointed out that CONFIG_* cannot be used in a uapi header.
Override with an equivalent conditional.

Fixes: 2e74694 ("Input: input_event - provide override for sparc64")
Fixes: 152194f ("Input: extend usable life of event timestamps to 2106 on 32 bit systems")
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Deepa Dinamani authored and Dmitry Torokhov committed Jan 24, 2019
1 parent ec87da1 commit 141e5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct input_event {
#define input_event_usec time.tv_usec
#else
__kernel_ulong_t __sec;
#ifdef CONFIG_SPARC64
#if defined(__sparc__) && defined(__arch64__)
unsigned int __usec;
#else
__kernel_ulong_t __usec;
Expand Down

0 comments on commit 141e5dc

Please sign in to comment.