Skip to content

Commit 141e5dc

Browse files
deepa-hubdtor
authored andcommitted
Input: input_event - fix the CONFIG_SPARC64 mixup
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 <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent ec87da1 commit 141e5dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/input.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct input_event {
3232
#define input_event_usec time.tv_usec
3333
#else
3434
__kernel_ulong_t __sec;
35-
#ifdef CONFIG_SPARC64
35+
#if defined(__sparc__) && defined(__arch64__)
3636
unsigned int __usec;
3737
#else
3838
__kernel_ulong_t __usec;

0 commit comments

Comments
 (0)