]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Jan 2019 13:32:54 +0000 (14:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Jan 2019 13:32:54 +0000 (14:32 +0100)
added patches:
input-input_event-fix-the-config_sparc64-mixup.patch

queue-4.19/input-input_event-fix-the-config_sparc64-mixup.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/input-input_event-fix-the-config_sparc64-mixup.patch b/queue-4.19/input-input_event-fix-the-config_sparc64-mixup.patch
new file mode 100644 (file)
index 0000000..10640e9
--- /dev/null
@@ -0,0 +1,33 @@
+From 141e5dcaa7356077028b4cd48ec351a38c70e5e5 Mon Sep 17 00:00:00 2001
+From: Deepa Dinamani <deepa.kernel@gmail.com>
+Date: Thu, 24 Jan 2019 00:29:20 -0800
+Subject: Input: input_event - fix the CONFIG_SPARC64 mixup
+
+From: Deepa Dinamani <deepa.kernel@gmail.com>
+
+commit 141e5dcaa7356077028b4cd48ec351a38c70e5e5 upstream.
+
+Arnd Bergmann pointed out that CONFIG_* cannot be used in a uapi header.
+Override with an equivalent conditional.
+
+Fixes: 2e746942ebac ("Input: input_event - provide override for sparc64")
+Fixes: 152194fe9c3f ("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>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ include/uapi/linux/input.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/uapi/linux/input.h
++++ b/include/uapi/linux/input.h
+@@ -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;
index f3ea35a07c1bbc752ffc1d6f32ff5f7a49dff4aa..c10b66a60f8fedb5a5323d1eb08cfa4a9715fcfc 100644 (file)
@@ -101,3 +101,4 @@ nvmet-rdma-fix-null-dereference-under-heavy-load.patch
 revert-mm-memory_hotplug-initialize-struct-pages-for-the-full-memory-section.patch
 usb-dwc3-gadget-clear-req-needs_extra_trb-flag-on-cleanup.patch
 ide-fix-a-typo-in-the-settings-proc-file-name.patch
+input-input_event-fix-the-config_sparc64-mixup.patch