]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
powerpc: Move flush_instruction_cache() prototype in asm/cacheflush.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 14 Aug 2020 05:56:25 +0000 (05:56 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Sep 2020 01:00:21 +0000 (11:00 +1000)
flush_instruction_cache() belongs to the cache flushing function
family.

Move its prototype in asm/cacheflush.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/993445b5227e8ca2f0e38bcc9ea3dfea6e865920.1597384512.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/cacheflush.h
arch/powerpc/include/asm/processor.h
arch/powerpc/platforms/44x/machine_check.c

index 54764c6e922def0e74528b159c091079389a000e..481877879fecddfc83069fd5d71d836ce4bf05e2 100644 (file)
@@ -98,6 +98,8 @@ static inline void invalidate_dcache_range(unsigned long start,
        mb();   /* sync */
 }
 
+void flush_instruction_cache(void);
+
 #include <asm-generic/cacheflush.h>
 
 #endif /* _ASM_POWERPC_CACHEFLUSH_H */
index 8c7ad14d68ded4e87349fe5c70c4b09017a7e2d9..36a71cd41f37ec5309896254bc9dcd0e381ff559 100644 (file)
@@ -435,7 +435,6 @@ extern void power7_idle_type(unsigned long type);
 extern void power9_idle_type(unsigned long stop_psscr_val,
                              unsigned long stop_psscr_mask);
 
-extern void flush_instruction_cache(void);
 extern int fix_alignment(struct pt_regs *);
 
 #ifdef CONFIG_PPC64
index 90ad6ac529d2ea959d59b0840e80222207f252f8..a5c898bb9bab7d5ddce0051d40e5600f2c10880a 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/ptrace.h>
 
 #include <asm/reg.h>
+#include <asm/cacheflush.h>
 
 int machine_check_440A(struct pt_regs *regs)
 {