From: Greg Kroah-Hartman Date: Wed, 15 May 2019 05:50:52 +0000 (+0200) Subject: 4.19-stable patches X-Git-Tag: v3.18.140~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cfca091bb9710df73a14cc0b5be76a9f476c8af7;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: powerpc-64s-include-cpu-header.patch --- diff --git a/queue-4.19/powerpc-64s-include-cpu-header.patch b/queue-4.19/powerpc-64s-include-cpu-header.patch new file mode 100644 index 00000000000..accc6a7f056 --- /dev/null +++ b/queue-4.19/powerpc-64s-include-cpu-header.patch @@ -0,0 +1,47 @@ +From 42e2acde1237878462b028f5a27d9cc5bea7502c Mon Sep 17 00:00:00 2001 +From: Breno Leitao +Date: Mon, 22 Oct 2018 11:54:12 -0300 +Subject: powerpc/64s: Include cpu header + +From: Breno Leitao + +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 +Signed-off-by: Michael Ellerman +Cc: Joel Stanley +Cc: Nathan Chancellor +Cc: Major Hayden +Signed-off-by: Greg Kroah-Hartman + +--- + 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 + #include + #include + #include diff --git a/queue-4.19/series b/queue-4.19/series index 5800cc5192b..0c86878f11f 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -84,3 +84,4 @@ mwl8k-fix-rate_idx-underflow.patch rtlwifi-rtl8723ae-fix-missing-break-in-switch-statement.patch don-t-jump-to-compute_result-state-from-check_result-state.patch um-don-t-hardcode-path-as-it-is-architecture-dependent.patch +powerpc-64s-include-cpu-header.patch