From: Christophe Leroy Date: Fri, 14 Aug 2020 05:56:25 +0000 (+0000) Subject: powerpc: Move flush_instruction_cache() prototype in asm/cacheflush.h X-Git-Tag: iomap-folio-5.17-old~2948^2~184 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f663f3312051402d32952c44d156a20c0b854753;p=users%2Fwilly%2Flinux.git powerpc: Move flush_instruction_cache() prototype in asm/cacheflush.h flush_instruction_cache() belongs to the cache flushing function family. Move its prototype in asm/cacheflush.h Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/993445b5227e8ca2f0e38bcc9ea3dfea6e865920.1597384512.git.christophe.leroy@csgroup.eu --- diff --git a/arch/powerpc/include/asm/cacheflush.h b/arch/powerpc/include/asm/cacheflush.h index 54764c6e922d..481877879fec 100644 --- a/arch/powerpc/include/asm/cacheflush.h +++ b/arch/powerpc/include/asm/cacheflush.h @@ -98,6 +98,8 @@ static inline void invalidate_dcache_range(unsigned long start, mb(); /* sync */ } +void flush_instruction_cache(void); + #include #endif /* _ASM_POWERPC_CACHEFLUSH_H */ diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index 8c7ad14d68de..36a71cd41f37 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h @@ -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 diff --git a/arch/powerpc/platforms/44x/machine_check.c b/arch/powerpc/platforms/44x/machine_check.c index 90ad6ac529d2..a5c898bb9bab 100644 --- a/arch/powerpc/platforms/44x/machine_check.c +++ b/arch/powerpc/platforms/44x/machine_check.c @@ -7,6 +7,7 @@ #include #include +#include int machine_check_440A(struct pt_regs *regs) {