]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 May 2019 05:49:49 +0000 (07:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 May 2019 05:49:49 +0000 (07:49 +0200)
added patches:
powerpc-64s-include-cpu-header.patch

queue-4.4/powerpc-64s-include-cpu-header.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/powerpc-64s-include-cpu-header.patch b/queue-4.4/powerpc-64s-include-cpu-header.patch
new file mode 100644 (file)
index 0000000..37b1141
--- /dev/null
@@ -0,0 +1,47 @@
+From 42e2acde1237878462b028f5a27d9cc5bea7502c Mon Sep 17 00:00:00 2001
+From: Breno Leitao <leitao@debian.org>
+Date: Mon, 22 Oct 2018 11:54:12 -0300
+Subject: powerpc/64s: Include cpu header
+
+From: Breno Leitao <leitao@debian.org>
+
+commit 42e2acde1237878462b028f5a27d9cc5bea7502c upstream.
+
+Current powerpc security.c file is defining functions, as
+cpu_show_meltdown(), cpu_show_spectre_v{1,2} and others, that are being
+declared at linux/cpu.h header without including the header file that
+contains these declarations.
+
+This is being reported by sparse, which thinks that these functions are
+static, due to the lack of declaration:
+
+       arch/powerpc/kernel/security.c:105:9: warning: symbol 'cpu_show_meltdown' was not declared. Should it be static?
+       arch/powerpc/kernel/security.c:139:9: warning: symbol 'cpu_show_spectre_v1' was not declared. Should it be static?
+       arch/powerpc/kernel/security.c:161:9: warning: symbol 'cpu_show_spectre_v2' was not declared. Should it be static?
+       arch/powerpc/kernel/security.c:209:6: warning: symbol 'stf_barrier' was not declared. Should it be static?
+       arch/powerpc/kernel/security.c:289:9: warning: symbol 'cpu_show_spec_store_bypass' was not declared. Should it be static?
+
+This patch simply includes the proper header (linux/cpu.h) to match
+function definition and declaration.
+
+Signed-off-by: Breno Leitao <leitao@debian.org>
+Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
+Cc: Joel Stanley <joel@jms.id.au>
+Cc: Nathan Chancellor <natechancellor@gmail.com>
+Cc: Major Hayden <major@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/powerpc/kernel/security.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/powerpc/kernel/security.c
++++ b/arch/powerpc/kernel/security.c
+@@ -4,6 +4,7 @@
+ //
+ // Copyright 2018, Michael Ellerman, IBM Corporation.
++#include <linux/cpu.h>
+ #include <linux/kernel.h>
+ #include <linux/debugfs.h>
+ #include <linux/device.h>
index c6ffa92f01e88d71be8cc5443e6754d7f46f634e..771aaaecf008e8efa8b1498e301d498c2f6b7f2e 100644 (file)
@@ -253,3 +253,4 @@ x86-speculation-mds-fix-documentation-typo.patch
 x86-bugs-change-l1tf-mitigation-string-to-match-upstream.patch
 usb-serial-use-variable-for-status.patch
 usb-serial-fix-unthrottle-races.patch
+powerpc-64s-include-cpu-header.patch