Skip to contentSkip to conversation

arch/powerpc: remove duplicate includes

PATCH In review Pravin Shedge 2 participants 2 messages Dec 16, 2017 – Dec 19, 2017 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 38/45 arch/powerpc: remove duplicate includes

These duplicate includes have been found with scripts/checkincludes.pl but they have been removed manually to avoid removing false positives.

---
 arch/powerpc/kernel/time.c               | 2 --
 arch/powerpc/lib/code-patching.c         | 1 -
 arch/powerpc/mm/numa.c                   | 1 -
 arch/powerpc/platforms/powernv/npu-dma.c | 1 -
 arch/powerpc/platforms/powernv/opal.c    | 1 -
 5 files changed, 6 deletions(-)
arch/powerpc/kernel/time.c +0 -2
index fe6f3a2..64d0b80 100644
@@ -57,7 +57,6 @@
 #include <linux/irq_work.h>
 #include <linux/clk-provider.h>
 #include <linux/suspend.h>
-#include <linux/rtc.h>
 #include <linux/sched/cputime.h>
 #include <linux/processor.h>
 #include <asm/trace.h>
@@ -78,7 +77,6 @@
 
 /* powerpc clocksource/clockevent code */
 
-#include <linux/clockchips.h>
 #include <linux/timekeeper_internal.h>
 
 static u64 rtc_read(struct clocksource *);
arch/powerpc/lib/code-patching.c +0 -1
index d469224..5f7e5ed 100644
@@ -15,7 +15,6 @@
 #include <linux/cpuhotplug.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
-#include <linux/kprobes.h>
 
 #include <asm/pgtable.h>
 #include <asm/tlbflush.h>
arch/powerpc/mm/numa.c +0 -1
index adb6364f..fa4b3af 100644
@@ -33,7 +33,6 @@
 #include <asm/sparsemem.h>
 #include <asm/prom.h>
 #include <asm/smp.h>
-#include <asm/cputhreads.h>
 #include <asm/topology.h>
 #include <asm/firmware.h>
 #include <asm/paca.h>
arch/powerpc/platforms/powernv/npu-dma.c +0 -1
index f6cbc1a..e35b4fc 100644
@@ -26,7 +26,6 @@
 #include <asm/iommu.h>
 #include <asm/pnv-pci.h>
 #include <asm/msi_bitmap.h>
-#include <asm/opal.h>
 
 #include "powernv.h"
 #include "pci.h"
arch/powerpc/platforms/powernv/opal.c +0 -1
index 041ddbd..e00c1c6 100644
@@ -26,7 +26,6 @@
 #include <linux/memblock.h>
 #include <linux/kthread.h>
 #include <linux/freezer.h>
-#include <linux/printk.h>
 #include <linux/kmsg_dump.h>
 #include <linux/console.h>
 #include <linux/sched/debug.h>
Signature · 1 line
2.7.4
reviewer Acked-by on v1 38/45
#1 lore raw
Quoted 11 lines · Pravin Shedge

These duplicate includes have been found with scripts/checkincludes.pl but they have been removed manually to avoid removing false positives.

---
 arch/powerpc/kernel/time.c               | 2 --
 arch/powerpc/lib/code-patching.c         | 1 -
 arch/powerpc/mm/numa.c                   | 1 -
 arch/powerpc/platforms/powernv/npu-dma.c | 1 -
 arch/powerpc/platforms/powernv/opal.c    | 1 -
 5 files changed, 6 deletions(-)

Do you want me to merge this, or is it going via some other tree?

If the latter:

cheers