]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up some 3.18 build issues
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 10:35:42 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 10:35:42 +0000 (11:35 +0100)
queue-3.18/series
queue-3.18/sparc-throttle-perf-events-properly.patch
queue-3.18/x86-olpc-indicate-that-legacy-pc-xo-1-platform-should-not-register-rtc.patch [deleted file]

index d0592f226fc2fadbf622a2ec5e8f866ee3027af0..291f0dd75c7027d0029beb610c935b0b31d5f77b 100644 (file)
@@ -14,7 +14,6 @@ tun-consistently-configure-generic-netdev-params-via-rtnetlink.patch
 perf-tools-free-temporary-sys-string-in-read_event_files.patch
 perf-tools-cleanup-trace-event-info-tdata-leak.patch
 mmc-sdhci-pci-o2micro-add-quirk-for-o2-micro-dev-0x8620-rev-0x01.patch
-x86-olpc-indicate-that-legacy-pc-xo-1-platform-should-not-register-rtc.patch
 x86-boot-fix-efi-stub-alignment.patch
 kprobes-return-error-if-we-fail-to-reuse-kprobe-instead-of-bug_on.patch
 ath10k-schedule-hardware-restart-if-wmi-command-times-out.patch
index 48dd40a6f4eea6c762cea1b0f0fe7fd74082f465..1c515ffe9d553a1f44ac9da94e525f9b1b3d5230 100644 (file)
@@ -23,7 +23,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  #include <asm/cpudata.h>
  #include <asm/uaccess.h>
  #include <linux/atomic.h>
-+#include <linux/sched/clock.h>
++#include <linux/sched_clock.h>
  #include <asm/nmi.h>
  #include <asm/pcr.h>
  #include <asm/cacheflush.h>
diff --git a/queue-3.18/x86-olpc-indicate-that-legacy-pc-xo-1-platform-should-not-register-rtc.patch b/queue-3.18/x86-olpc-indicate-that-legacy-pc-xo-1-platform-should-not-register-rtc.patch
deleted file mode 100644 (file)
index a912efc..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-From foo@baz Sat Nov 10 11:35:28 PST 2018
-From: Lubomir Rintel <lkundrak@v3.sk>
-Date: Thu, 4 Oct 2018 18:08:08 +0200
-Subject: x86/olpc: Indicate that legacy PC XO-1 platform should not register RTC
-
-From: Lubomir Rintel <lkundrak@v3.sk>
-
-[ Upstream commit d92116b800fb79a72ad26121f5011f6aa3ad94c2 ]
-
-On OLPC XO-1, the RTC is discovered via device tree from the arch
-initcall. Don't let the PC platform register another one from its device
-initcall, it's not going to work:
-
-  sysfs: cannot create duplicate filename '/devices/platform/rtc_cmos'
-  CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.0-rc6 #12
-  Hardware name: OLPC XO/XO, BIOS OLPC Ver 1.00.01 06/11/2014
-  Call Trace:
-   dump_stack+0x16/0x18
-   sysfs_warn_dup+0x46/0x58
-   sysfs_create_dir_ns+0x76/0x9b
-   kobject_add_internal+0xed/0x209
-   ? __schedule+0x3fa/0x447
-   kobject_add+0x5b/0x66
-   device_add+0x298/0x535
-   ? insert_resource_conflict+0x2a/0x3e
-   platform_device_add+0x14d/0x192
-   ? io_delay_init+0x19/0x19
-   platform_device_register+0x1c/0x1f
-   add_rtc_cmos+0x16/0x31
-   do_one_initcall+0x78/0x14a
-   ? do_early_param+0x75/0x75
-   kernel_init_freeable+0x152/0x1e0
-   ? rest_init+0xa2/0xa2
-   kernel_init+0x8/0xd5
-   ret_from_fork+0x2e/0x38
-  kobject_add_internal failed for rtc_cmos with -EEXIST, don't try to
-    register things with the same name in the same directory.
-  platform rtc_cmos: registered platform RTC device (no PNP device found)
-
-Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
-Signed-off-by: Borislav Petkov <bp@suse.de>
-Acked-by: Thomas Gleixner <tglx@linutronix.de>
-CC: "H. Peter Anvin" <hpa@zytor.com>
-CC: Ingo Molnar <mingo@redhat.com>
-CC: x86-ml <x86@kernel.org>
-Link: http://lkml.kernel.org/r/20181004160808.307738-1-lkundrak@v3.sk
-Signed-off-by: Sasha Levin <sashal@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/x86/platform/olpc/olpc-xo1-rtc.c |    3 +++
- 1 file changed, 3 insertions(+)
-
---- a/arch/x86/platform/olpc/olpc-xo1-rtc.c
-+++ b/arch/x86/platform/olpc/olpc-xo1-rtc.c
-@@ -16,6 +16,7 @@
- #include <asm/msr.h>
- #include <asm/olpc.h>
-+#include <asm/x86_init.h>
- static void rtc_wake_on(struct device *dev)
- {
-@@ -75,6 +76,8 @@ static int __init xo1_rtc_init(void)
-       if (r)
-               return r;
-+      x86_platform.legacy.rtc = 0;
-+
-       device_init_wakeup(&xo1_rtc_device.dev, 1);
-       return 0;
- }