linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] asm-generic/tlb: Fix duplicate included asm-generic/tlb.h
@ 2021-05-14  9:14 Jiapeng Chong
  0 siblings, 0 replies; only message in thread
From: Jiapeng Chong @ 2021-05-14  9:14 UTC (permalink / raw)
  To: will
  Cc: aneesh.kumar, akpm, npiggin, peterz, linux-arch, linux-mm,
	linux-arm-kernel, linux-kernel, Jiapeng Chong

Clean up the following includecheck warning:

./arch/arm/include/asm/tlb.h: asm-generic/tlb.h is included more than
once.

No functional change.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 arch/arm/include/asm/tlb.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/arm/include/asm/tlb.h b/arch/arm/include/asm/tlb.h
index b8cbe03..df4a6ea 100644
--- a/arch/arm/include/asm/tlb.h
+++ b/arch/arm/include/asm/tlb.h
@@ -15,6 +15,7 @@
 #define __ASMARM_TLB_H
 
 #include <asm/cacheflush.h>
+#include <asm-generic/tlb.h>
 
 #ifndef CONFIG_MMU
 
@@ -22,8 +23,6 @@
 
 #define tlb_flush(tlb)	((void) tlb)
 
-#include <asm-generic/tlb.h>
-
 #else /* !CONFIG_MMU */
 
 #include <linux/swap.h>
@@ -34,8 +33,6 @@ static inline void __tlb_remove_table(void *_table)
 	free_page_and_swap_cache((struct page *)_table);
 }
 
-#include <asm-generic/tlb.h>
-
 static inline void
 __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pte, unsigned long addr)
 {
-- 
1.8.3.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-14  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14  9:14 [PATCH] asm-generic/tlb: Fix duplicate included asm-generic/tlb.h Jiapeng Chong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).