From: menglong8.dong@gmail.com
To: aneesh.kumar@linux.ibm.com
Cc: will@kernel.org, akpm@linux-foundation.org, npiggin@gmail.com,
peterz@infradead.org, ysato@users.sourceforge.jp,
dalias@libc.org, linux-arch@vger.kernel.org, linux-mm@kvack.org,
linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org,
Zhang Yunkai <zhang.yunkai@zte.com.cn>
Subject: [PATCH] sh: remove duplicate include in tlb.h
Date: Thu, 4 Mar 2021 05:20:20 -0800 [thread overview]
Message-ID: <20210304132020.196811-1-zhang.yunkai@zte.com.cn> (raw)
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
reply other threads:[~2021-03-04 13:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210304132020.196811-1-zhang.yunkai@zte.com.cn \
--to=menglong8.dong@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=aneesh.kumar@linux.ibm.com \
--cc=dalias@libc.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-sh@vger.kernel.org \
--cc=npiggin@gmail.com \
--cc=peterz@infradead.org \
--cc=will@kernel.org \
--cc=ysato@users.sourceforge.jp \
--cc=zhang.yunkai@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.