summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaura Abbott <labbott@fedoraproject.org>2017-02-21 12:29:12 -0800
committerLaura Abbott <labbott@fedoraproject.org>2017-02-21 12:29:12 -0800
commitc6d02e4149f5bbb0e4e0b7fd9f9b32c9024ee809 (patch)
tree8d02750e0032da19b42474acab349322fe68fe2a
parent012c1b49993bba21f6d560dafd146d11fb59c957 (diff)
downloadkernel-c6d02e4149f5bbb0e4e0b7fd9f9b32c9024ee809.tar.gz
kernel-c6d02e4149f5bbb0e4e0b7fd9f9b32c9024ee809.tar.xz
kernel-c6d02e4149f5bbb0e4e0b7fd9f9b32c9024ee809.zip
Fix for arm64 build breakage
-rw-r--r--kernel.spec3
-rw-r--r--sched-core-Fix-build-paravirt-build-on-arm-and-arm64.patch41
2 files changed, 44 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index 1305dcd1d..d373830ef 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -610,6 +610,9 @@ Patch853: 0001-Work-around-for-gcc7-and-arm64.patch
#CVE-2017-2596 rhbz 1417812 1417813
Patch854: kvm-fix-page-struct-leak-in-handle_vmon.patch
+# build breakage during merge window
+Patch855: sched-core-Fix-build-paravirt-build-on-arm-and-arm64.patch
+
# END OF PATCH DEFINITIONS
%endif
diff --git a/sched-core-Fix-build-paravirt-build-on-arm-and-arm64.patch b/sched-core-Fix-build-paravirt-build-on-arm-and-arm64.patch
new file mode 100644
index 000000000..c75268593
--- /dev/null
+++ b/sched-core-Fix-build-paravirt-build-on-arm-and-arm64.patch
@@ -0,0 +1,41 @@
+From patchwork Tue Feb 21 17:29:01 2017
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+Subject: sched/core: Fix build paravirt build on arm and arm64
+From: Mark Brown <broonie@kernel.org>
+X-Patchwork-Id: 9585221
+Message-Id: <20170221172901.6234-1-broonie@kernel.org>
+To: Ingo Molnar <mingo@kernel.org>,
+ Linus Torvalds <torvalds@linux-foundation.org>
+Cc: linux-kernel@vger.kernel.org, Mike Galbraith <efault@gmx.de>,
+ Peter Zijlstra <peterz@infradead.org>,
+ Thomas Gleixner <tglx@linutronix.de>, Mark Brown <broonie@kernel.org>
+Date: Tue, 21 Feb 2017 09:29:01 -0800
+
+Commit 004172bdad64432 (sched/core: Remove unnecessary #include
+headers) removed the inclusion of asm/paravirt.h which is used to get
+declarations of paravirt_steal_rq_enabled and paravirt_steal_clock. It
+is implicitly included on but not on arm and arm64 breaking the build if
+paravirtualization is used. Since things from that header are used
+directly fix the build by putting the direct inclusion back.
+
+Signed-off-by: Mark Brown <broonie@kernel.org>
+---
+ kernel/sched/core.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/kernel/sched/core.c b/kernel/sched/core.c
+index c7ded3311ec4..6ea1925ac5c0 100644
+--- a/kernel/sched/core.c
++++ b/kernel/sched/core.c
+@@ -23,6 +23,9 @@
+
+ #include <asm/switch_to.h>
+ #include <asm/tlb.h>
++#ifdef CONFIG_PARAVIRT
++#include <asm/paravirt.h>
++#endif
+
+ #include "sched.h"
+ #include "../workqueue_internal.h"