Skip to content

Commit b6b79dd

Browse files
sfrothwellmpe
authored andcommitted
powerpc/64s: Fix allnoconfig build since uaccess flush
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: 9a32a7e ("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
1 parent 962f8e6 commit b6b79dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/powerpc/include/asm/book3s/64/kup-radix.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363

6464
#else /* !__ASSEMBLY__ */
6565

66+
#include <linux/jump_label.h>
67+
6668
DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);
6769

6870
#ifdef CONFIG_PPC_KUAP

0 commit comments

Comments
 (0)