PCI: vmd: Remove duplicated include in vmd.c
Subsystems (3)
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
@@ -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
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
Quoted 6 lines · Wan Jiabing
Fix following checkincludes.pl warning:
./drivers/pci/controller/vmd.c:linux/device.his included more than once.The include is in line 7. Remove the duplicated here.
Signed-off-by Wan Jiabing <[email protected]>
Squashed in, thanks!
Quoted 19 lines
--- drivers/pci/controller/vmd.c | 1 - 1 file changed, 1 deletion(-)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> Signature · 1 line
2.20.1