]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
powerpc/64s: Fix allnoconfig build since uaccess flush
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 23 Nov 2020 07:40:16 +0000 (18:40 +1100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:24:42 +0000 (14:24 +0100)
BugLink: https://bugs.launchpad.net/bugs/1908562
[ Upstream commit b6b79dd53082db11070b4368d85dd6699ff0b063 ]

Using DECLARE_STATIC_KEY_FALSE needs linux/jump_table.h.

Otherwise the build fails with eg:

  arch/powerpc/include/asm/book3s/64/kup-radix.h:66:1: warning: data definition has no type or storage class
     66 | DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);

Fixes: 9a32a7e78bd0 ("powerpc/64s: flush L1D after user accesses")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
[mpe: Massage change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201123184016.693fe464@canb.auug.org.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
arch/powerpc/include/asm/book3s/64/kup-radix.h

index c1e45f510591e2142203f26c9491e0320cdb8f76..a29b64129a7d49718ce52158f373786a087f927b 100644 (file)
@@ -54,6 +54,8 @@
 
 #else /* !__ASSEMBLY__ */
 
+#include <linux/jump_label.h>
+
 DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);
 
 #ifdef CONFIG_PPC_KUAP