* [PATCH] sh: remove duplicate include in tlb.h
@ 2021-03-04 13:20 menglong8.dong
0 siblings, 0 replies; only message in thread
From: menglong8.dong @ 2021-03-04 13:20 UTC (permalink / raw)
To: aneesh.kumar
Cc: will, akpm, npiggin, peterz, ysato, dalias, linux-arch, linux-mm,
linux-sh, linux-kernel, Zhang Yunkai
From: Zhang Yunkai <zhang.yunkai@zte.com.cn>
'asm-generic/tlb.h' included in 'asm/tlb.h' is duplicated.
Signed-off-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>
---
arch/sh/include/asm/tlb.h | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/arch/sh/include/asm/tlb.h b/arch/sh/include/asm/tlb.h
index 360f713d009b..aeb8915e9254 100644
--- a/arch/sh/include/asm/tlb.h
+++ b/arch/sh/include/asm/tlb.h
@@ -4,12 +4,11 @@
#ifndef __ASSEMBLY__
#include <linux/pagemap.h>
+#include <asm-generic/tlb.h>
#ifdef CONFIG_MMU
#include <linux/swap.h>
-#include <asm-generic/tlb.h>
-
#if defined(CONFIG_CPU_SH4)
extern void tlb_wire_entry(struct vm_area_struct *, unsigned long, pte_t);
extern void tlb_unwire_entry(void);
@@ -24,12 +23,7 @@ static inline void tlb_unwire_entry(void)
{
BUG();
}
-#endif
-
-#else /* CONFIG_MMU */
-
-#include <asm-generic/tlb.h>
-
+#endif /* CONFIG_CPU_SH4 */
#endif /* CONFIG_MMU */
#endif /* __ASSEMBLY__ */
#endif /* __ASM_SH_TLB_H */
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-04 13:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 13:20 [PATCH] sh: remove duplicate include in tlb.h menglong8.dong
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).