powerpc: Remove duplicate includes
authorZhang Yunkai <zhang.yunkai@zte.com.cn>
Thu, 4 Mar 2021 04:49:43 +0000 (20:49 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Mar 2021 03:09:30 +0000 (14:09 +1100)
asm/tm.h included in traps.c is duplicated. It is also included on
the 62nd line.

asm/udbg.h included in setup-common.c is duplicated. It is also
included on the 61st line.

asm/bug.h included in arch/powerpc/include/asm/book3s/64/mmu-hash.h
is duplicated. It is also included on the 12th line.

asm/tlbflush.h included in arch/powerpc/include/asm/pgtable.h is
duplicated. It is also included on the 11th line.

asm/page.h included in arch/powerpc/include/asm/thread_info.h is
duplicated. It is also included on the 13th line.

Signed-off-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>
[mpe: Squash together from multiple commits]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/include/asm/pgtable.h
arch/powerpc/include/asm/thread_info.h
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/traps.c

index f911bdb68d8bb52b1df8011654ca1b6d55a65c5b..3004f3323144d1f2909d049f379e23c42ff8e423 100644 (file)
@@ -18,7 +18,6 @@
  * complete pgtable.h but only a portion of it.
  */
 #include <asm/book3s/64/pgtable.h>
-#include <asm/bug.h>
 #include <asm/task_size_64.h>
 #include <asm/cpu_has_feature.h>
 
index 4eed82172e3348efa832c5ad7ffbcf04909e195a..c6a676714f04099b6fecd66cf0c1bf034d83daa2 100644 (file)
@@ -41,8 +41,6 @@ struct mm_struct;
 
 #ifndef __ASSEMBLY__
 
-#include <asm/tlbflush.h>
-
 /* Keep these as a macros to avoid include dependency mess */
 #define pte_page(x)            pfn_to_page(pte_pfn(x))
 #define mk_pte(page, pgprot)   pfn_pte(page_to_pfn(page), (pgprot))
index 386d576673a1df56b6e18c73477d73e09ecf0eae..9d6402402b9bad0edab44e0b3f87a0a8a9b3db09 100644 (file)
@@ -38,7 +38,6 @@
 #ifndef __ASSEMBLY__
 #include <linux/cache.h>
 #include <asm/processor.h>
-#include <asm/page.h>
 #include <asm/accounting.h>
 
 #define SLB_PRELOAD_NR 16U
index bee984b1887b6c5c837b6f351e5df2827bbc295f..7221f11acf0460325c123dd28d3aadd12dbd0c71 100644 (file)
@@ -69,7 +69,6 @@
 #include "setup.h"
 
 #ifdef DEBUG
-#include <asm/udbg.h>
 #define DBG(fmt...) udbg_printf(fmt)
 #else
 #define DBG(fmt...)
index a9b199b46beefc62a6244f8a684ce7a568aca674..97914ee2fdc9505736b42a11720829ef6f1688ed 100644 (file)
@@ -53,7 +53,6 @@
 #ifdef CONFIG_PPC64
 #include <asm/firmware.h>
 #include <asm/processor.h>
-#include <asm/tm.h>
 #endif
 #include <asm/kexec.h>
 #include <asm/ppc-opcode.h>