]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 10:01:33 +0000 (11:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 10:01:33 +0000 (11:01 +0100)
added patches:
gcov-disable-for-compile_test.patch

queue-3.18/gcov-disable-for-compile_test.patch [new file with mode: 0644]
queue-3.18/series [new file with mode: 0644]
queue-4.14/series [new file with mode: 0644]
queue-4.4/series [new file with mode: 0644]

diff --git a/queue-3.18/gcov-disable-for-compile_test.patch b/queue-3.18/gcov-disable-for-compile_test.patch
new file mode 100644 (file)
index 0000000..3be63c5
--- /dev/null
@@ -0,0 +1,40 @@
+From cc622420798c4bcf093785d872525087a7798db9 Mon Sep 17 00:00:00 2001
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Mon, 25 Apr 2016 17:35:29 +0200
+Subject: gcov: disable for COMPILE_TEST
+
+From: Arnd Bergmann <arnd@arndb.de>
+
+commit cc622420798c4bcf093785d872525087a7798db9 upstream.
+
+Enabling gcov is counterproductive to compile testing: it significantly
+increases the kernel image size, compile time, and it produces lots
+of false positive "may be used uninitialized" warnings as the result
+of missed optimizations.
+
+This is in line with how UBSAN_SANITIZE_ALL and PROFILE_ALL_BRANCHES
+work, both of which have similar problems.
+
+With an ARM allmodconfig kernel, I see the build time drop from
+283 minutes CPU time to 225 minutes, and the vmlinux size drops
+from 43MB to 26MB.
+
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Acked-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
+Signed-off-by: Michal Marek <mmarek@suse.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ kernel/gcov/Kconfig |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/kernel/gcov/Kconfig
++++ b/kernel/gcov/Kconfig
+@@ -34,6 +34,7 @@ config GCOV_KERNEL
+ config GCOV_PROFILE_ALL
+       bool "Profile entire Kernel"
++      depends on !COMPILE_TEST
+       depends on GCOV_KERNEL
+       depends on SUPERH || S390 || X86 || PPC || MICROBLAZE || ARM || ARM64
+       default n
diff --git a/queue-3.18/series b/queue-3.18/series
new file mode 100644 (file)
index 0000000..ea16554
--- /dev/null
@@ -0,0 +1 @@
+gcov-disable-for-compile_test.patch
diff --git a/queue-4.14/series b/queue-4.14/series
new file mode 100644 (file)
index 0000000..2a81752
--- /dev/null
@@ -0,0 +1 @@
+tools-objtool-makefile-don-t-assume-sync-check.sh-is-executable.patch
diff --git a/queue-4.4/series b/queue-4.4/series
new file mode 100644 (file)
index 0000000..ea16554
--- /dev/null
@@ -0,0 +1 @@
+gcov-disable-for-compile_test.patch