Skip to contentSkip to conversation

powerpc/powernv/npu: Remove unused headers and a macro.

PATCH Applied Alexey Kardashevskiy 3 participants 4 messages Sep 28, 2018 – Dec 23, 2018 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/powernv/npu: Remove unused headers and a macro.

The macro and few headers are not used so remove them.

---
 arch/powerpc/platforms/powernv/npu-dma.c | 14 --------------
 1 file changed, 14 deletions(-)
arch/powerpc/platforms/powernv/npu-dma.c +0 -14
index 8006c54..3a5c4ed 100644
@@ -9,32 +9,18 @@
  * License as published by the Free Software Foundation.
  */
 
-#include <linux/slab.h>
 #include <linux/mmu_notifier.h>
 #include <linux/mmu_context.h>
 #include <linux/of.h>
-#include <linux/export.h>
 #include <linux/pci.h>
 #include <linux/memblock.h>
-#include <linux/iommu.h>
-#include <linux/debugfs.h>
 
 #include <asm/debugfs.h>
-#include <asm/tlb.h>
 #include <asm/powernv.h>
-#include <asm/reg.h>
-#include <asm/opal.h>
-#include <asm/io.h>
-#include <asm/iommu.h>
-#include <asm/pnv-pci.h>
-#include <asm/msi_bitmap.h>
 #include <asm/opal.h>
 
-#include "powernv.h"
 #include "pci.h"
 
-#define npu_to_phb(x) container_of(x, struct pnv_phb, npu)
-
 /*
  * spinlock to protect initialisation of an npu_context for a particular
  * mm_struct.
Signature · 1 line
2.11.0
#1 lore raw

Ping?

Quoted 45 lines · Alexey Kardashevskiy

The macro and few headers are not used so remove them.

---
 arch/powerpc/platforms/powernv/npu-dma.c | 14 --------------
 1 file changed, 14 deletions(-)
arch/powerpc/platforms/powernv/npu-dma.c +0 -14
index 8006c54..3a5c4ed 100644
@@ -9,32 +9,18 @@
  * License as published by the Free Software Foundation.
  */
 
-#include <linux/slab.h>
 #include <linux/mmu_notifier.h>
 #include <linux/mmu_context.h>
 #include <linux/of.h>
-#include <linux/export.h>
 #include <linux/pci.h>
 #include <linux/memblock.h>
-#include <linux/iommu.h>
-#include <linux/debugfs.h>
 
 #include <asm/debugfs.h>
-#include <asm/tlb.h>
 #include <asm/powernv.h>
-#include <asm/reg.h>
-#include <asm/opal.h>
-#include <asm/io.h>
-#include <asm/iommu.h>
-#include <asm/pnv-pci.h>
-#include <asm/msi_bitmap.h>
 #include <asm/opal.h>
 
-#include "powernv.h"
 #include "pci.h"
 
-#define npu_to_phb(x) container_of(x, struct pnv_phb, npu)
-
 /*
  * spinlock to protect initialisation of an npu_context for a particular
  * mm_struct.
Signature · 1 line
Alexey
#2 lore raw

Thanks! Looks like a reasonable cleanup. Assuming it compiles I can't see any reason not to add:

Quoted 60 lines · AEDT Alexey Kardashevskiy

Ping?

Quoted 57 lines · Alexey Kardashevskiy

The macro and few headers are not used so remove them.

---

 arch/powerpc/platforms/powernv/npu-dma.c | 14 --------------
 1 file changed, 14 deletions(-)
(quoted diff) +0 -0

b/arch/powerpc/platforms/powernv/npu-dma.c index 8006c54..3a5c4ed 100644

arch/powerpc/platforms/powernv/npu-dma.c +0 -14
@@ -9,32 +9,18 @@
 
  * License as published by the Free Software Foundation.
  */
 
-#include <linux/slab.h>
 
 #include <linux/mmu_notifier.h>
 #include <linux/mmu_context.h>
 #include <linux/of.h>
 
-#include <linux/export.h>
 
 #include <linux/pci.h>
 #include <linux/memblock.h>
 
-#include <linux/iommu.h>
-#include <linux/debugfs.h>
 
 #include <asm/debugfs.h>
 
-#include <asm/tlb.h>
 
 #include <asm/powernv.h>
 
-#include <asm/reg.h>
-#include <asm/opal.h>
-#include <asm/io.h>
-#include <asm/iommu.h>
-#include <asm/pnv-pci.h>
-#include <asm/msi_bitmap.h>
 
 #include <asm/opal.h>
 
-#include "powernv.h"
 
 #include "pci.h"
 
-#define npu_to_phb(x) container_of(x, struct pnv_phb, npu)
-
 
 /*
 
  * spinlock to protect initialisation of an npu_context for a particular
  * mm_struct.