]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.9.28/powerpc-correctly-disable-latent-entropy-gcc-plugin-on-prom_init.o.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.9.28 / powerpc-correctly-disable-latent-entropy-gcc-plugin-on-prom_init.o.patch
1 From eac6f8b0c7adb003776dbad9d037ee2fc64f9d62 Mon Sep 17 00:00:00 2001
2 From: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
3 Date: Tue, 6 Dec 2016 17:27:59 +1100
4 Subject: powerpc: Correctly disable latent entropy GCC plugin on prom_init.o
5
6 From: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
7
8 commit eac6f8b0c7adb003776dbad9d037ee2fc64f9d62 upstream.
9
10 Commit 38addce8b600 ("gcc-plugins: Add latent_entropy plugin") excludes
11 certain powerpc early boot code from the latent entropy plugin by adding
12 appropriate CFLAGS. It looks like this was supposed to cover
13 prom_init.o, but ended up saying init.o (which doesn't exist) instead.
14 Fix the typo.
15
16 Fixes: 38addce8b600 ("gcc-plugins: Add latent_entropy plugin")
17 Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
18 Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21 ---
22 arch/powerpc/kernel/Makefile | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 --- a/arch/powerpc/kernel/Makefile
26 +++ b/arch/powerpc/kernel/Makefile
27 @@ -15,7 +15,7 @@ CFLAGS_btext.o += -fPIC
28 endif
29
30 CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
31 -CFLAGS_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
32 +CFLAGS_prom_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
33 CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
34 CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
35