Skip to contentSkip to conversation

PCI: vmd: Remove duplicated include in vmd.c

PATCH In review Wan Jiabing 3 participants 3 messages Nov 4, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: vmd: Remove duplicated include in vmd.c

Fix following checkincludes.pl warning:
./drivers/pci/controller/vmd.c: linux/device.h is included more than once.

The include is in line 7. Remove the duplicated here.

---
 drivers/pci/controller/vmd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/controller/vmd.c +0 -1
index b48d9998e324..a45e8e59d3d4 100644
@@ -10,7 +10,6 @@
 #include <linux/irq.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/device.h>
 #include <linux/msi.h>
 #include <linux/pci.h>
 #include <linux/pci-acpi.h>
Signature · 1 line
2.20.1
#1 lore raw

Hi,

[...]

drivers/pci/controller/vmd.c line 15

Quoted 10 lines
drivers/pci/controller/vmd.c +0 -1
@@ -10,7 +10,6 @@
 #include <linux/irq.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/device.h>
 #include <linux/msi.h>
 #include <linux/pci.h>
 #include <linux/pci-acpi.h>

Wan, thank you for reporting this!

Bjorn, the patch I sent earlier:

https://lore.kernel.org/all/[email protected]/

Accidentally left the include at the top that was intended to me moved to be before the linux/msi.h to reflect previous order of the asm/device.h and asm/msi.h had.

I must have forgotten to remove the one from the top later. Sincere apologies!

I can send an update, or we can squeeze these two patches together. Sorry for adding you more work to do.

Krzysztof

#2 lore raw
In reply to Wan Jiabing
Quoted 6 lines · Wan Jiabing

Fix following checkincludes.pl warning:
./drivers/pci/controller/vmd.c: linux/device.h is included more than once.

The include is in line 7. Remove the duplicated here.

Squashed in, thanks!

Quoted 19 lines
---
 drivers/pci/controller/vmd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/controller/vmd.c +0 -1
index b48d9998e324..a45e8e59d3d4 100644
@@ -10,7 +10,6 @@
 #include <linux/irq.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/device.h>
 #include <linux/msi.h>
 #include <linux/pci.h>
 #include <linux/pci-acpi.h>
Signature · 1 line
2.20.1