All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [v2] arch: powerpc: Remove duplicate includes
@ 2021-03-23  6:29 Wan Jiabing
  2021-03-26  5:38 ` Daniel Axtens
  2021-08-27 13:15 ` Michael Ellerman
  0 siblings, 2 replies; 3+ messages in thread
From: Wan Jiabing @ 2021-03-23  6:29 UTC (permalink / raw)
  To: Michael Ellerman, Benjamin Herrenschmidt, Paul Mackerras,
	Nicholas Piggin, Aneesh Kumar K.V, Cédric Le Goater,
	Randy Dunlap, Wan Jiabing, Ganesh Goudar, Christophe Leroy,
	Michal Suchanek, Geert Uytterhoeven, Pingfan Liu,
	Frederic Weisbecker, linuxppc-dev, linux-kernel
  Cc: kael_w

mmu-hash.h: asm/bug.h has been included at line 12, so remove 
the duplicate one at line 21.
interrupt.c: asm/interrupt.h has been included at line 12, so 
remove the duplicate one at line 10. 
time.c: linux/sched/clock.h has been included at line 33,so 
remove the duplicate one at line 56 and move sched/cputime.h 
under sched including segament.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 arch/powerpc/include/asm/book3s/64/mmu-hash.h | 1 -
 arch/powerpc/kernel/interrupt.c               | 1 -
 arch/powerpc/kernel/time.c                    | 3 +--
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/powerpc/include/asm/book3s/64/mmu-hash.h b/arch/powerpc/include/asm/book3s/64/mmu-hash.h
index f911bdb68d8b..3004f3323144 100644
--- a/arch/powerpc/include/asm/book3s/64/mmu-hash.h
+++ b/arch/powerpc/include/asm/book3s/64/mmu-hash.h
@@ -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>
 
diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/kernel/interrupt.c
index c475a229a42a..11d456896772 100644
--- a/arch/powerpc/kernel/interrupt.c
+++ b/arch/powerpc/kernel/interrupt.c
@@ -7,7 +7,6 @@
 #include <asm/asm-prototypes.h>
 #include <asm/kup.h>
 #include <asm/cputime.h>
-#include <asm/interrupt.h>
 #include <asm/hw_irq.h>
 #include <asm/interrupt.h>
 #include <asm/kprobes.h>
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index b67d93a609a2..e2766e0e2a3a 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -31,6 +31,7 @@
 #include <linux/export.h>
 #include <linux/sched.h>
 #include <linux/sched/clock.h>
+#include <linux/sched/cputime.h>
 #include <linux/kernel.h>
 #include <linux/param.h>
 #include <linux/string.h>
@@ -52,8 +53,6 @@
 #include <linux/irq_work.h>
 #include <linux/of_clk.h>
 #include <linux/suspend.h>
-#include <linux/sched/cputime.h>
-#include <linux/sched/clock.h>
 #include <linux/processor.h>
 #include <asm/trace.h>
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] [v2] arch: powerpc: Remove duplicate includes
  2021-03-23  6:29 [PATCH] [v2] arch: powerpc: Remove duplicate includes Wan Jiabing
@ 2021-03-26  5:38 ` Daniel Axtens
  2021-08-27 13:15 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Axtens @ 2021-03-26  5:38 UTC (permalink / raw)
  To: Wan Jiabing, Michael Ellerman, Benjamin Herrenschmidt,
	Paul Mackerras, Nicholas Piggin, Aneesh Kumar K.V,
	Cédric Le Goater, Randy Dunlap, Wan Jiabing, Ganesh Goudar,
	Christophe Leroy, Michal Suchanek, Geert Uytterhoeven,
	Pingfan Liu, Frederic Weisbecker, linuxppc-dev, linux-kernel
  Cc: kael_w

Wan Jiabing <wanjiabing@vivo.com> writes:

> mmu-hash.h: asm/bug.h has been included at line 12, so remove 
> the duplicate one at line 21.

Looking at the file I had wondered if this was due to a #ifdef being
removed, but no, the second one was just added in commit 891121e6c02c
("powerpc/mm: Differentiate between hugetlb and THP during page
walk"). How odd!

Anyway, all of these look good to me, and the automated checks at
http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210323062916.295346-1-wanjiabing@vivo.com/
have all passed.

Reviewed-by: Daniel Axtens <dja@axtens.net>

Kind regards,
Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [v2] arch: powerpc: Remove duplicate includes
  2021-03-23  6:29 [PATCH] [v2] arch: powerpc: Remove duplicate includes Wan Jiabing
  2021-03-26  5:38 ` Daniel Axtens
@ 2021-08-27 13:15 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2021-08-27 13:15 UTC (permalink / raw)
  To: Frederic Weisbecker, Paul Mackerras, Christophe Leroy,
	Pingfan Liu, linuxppc-dev, linux-kernel, Wan Jiabing,
	Ganesh Goudar, Benjamin Herrenschmidt, Randy Dunlap,
	Cédric Le Goater, Michael Ellerman, Geert Uytterhoeven,
	Aneesh Kumar K.V, Nicholas Piggin, Michal Suchanek
  Cc: kael_w

On Tue, 23 Mar 2021 14:29:05 +0800, Wan Jiabing wrote:
> mmu-hash.h: asm/bug.h has been included at line 12, so remove
> the duplicate one at line 21.
> interrupt.c: asm/interrupt.h has been included at line 12, so
> remove the duplicate one at line 10.
> time.c: linux/sched/clock.h has been included at line 33,so
> remove the duplicate one at line 56 and move sched/cputime.h
> under sched including segament.
> 
> [...]

Applied to powerpc/next.

[1/1] arch: powerpc: Remove duplicate includes
      https://git.kernel.org/powerpc/c/e225c4d6bc389701f2f63fc246420a1da3465ab5

cheers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-27 13:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23  6:29 [PATCH] [v2] arch: powerpc: Remove duplicate includes Wan Jiabing
2021-03-26  5:38 ` Daniel Axtens
2021-08-27 13:15 ` Michael Ellerman

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.