PCI: vmd: Use preferred header files linux/device.h and linux/msi.h
Subsystems (3)
PATCH 1/2 PCI: vmd: Use preferred header files linux/device.h and linux/msi.h
Use the preferred generic header files linux/device.h and linux/msi.h that already include the corresponding asm/device.h and asm/msi.h files, especially where the headers files linux/msi.h and asm/msi.h where both included.
--- drivers/pci/controller/vmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/pci/controller/vmd.c +1 -2
@@ -9,6 +9,7 @@#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>
@@ -18,8 +19,6 @@#include <linux/rcupdate.h> #include <asm/irqdomain.h> -#include <asm/device.h> -#include <asm/msi.h> #define VMD_CFGBAR 0#define VMD_MEMBAR1 2
Signature · 1 line
2.33.0
PATCH 2/2 PCI: hotplug: Use preferred header file linux/io.h
Use the preferred generic header file linux/io.h that already includes the corresponding asm/io.h file.
--- drivers/pci/hotplug/cpqphp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/hotplug/cpqphp.h +1 -1
@@ -15,7 +15,7 @@#define _CPQPHP_H#include <linux/interrupt.h> -#include <asm/io.h> /* for read? and write? functions */ +#include <linux/io.h> /* for read? and write? functions */ #include <linux/delay.h> /* for delays */ #include <linux/mutex.h> #include <linux/sched/signal.h> /* for signal_pending() */
Signature · 1 line
2.33.0
Quoted 24 lines · Krzysztof Wilczyński
Use the preferred generic header files
linux/device.handlinux/msi.hthat already include the correspondingasm/device.handasm/msi.hfiles, especially where the headers fileslinux/msi.handasm/msi.hwhere both included.Signed-off-by Krzysztof Wilczyński <[email protected]>--- drivers/pci/controller/vmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/pci/controller/vmd.c +1
-0@@ -9,6 +9,7 @@#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>
drivers/pci/controller/vmd.c line 24
Quoted 8 lines
drivers/pci/controller/vmd.c +0
-2@@ -18,8 +19,6 @@#include <linux/rcupdate.h> #include <asm/irqdomain.h> -#include <asm/device.h> -#include <asm/msi.h> #define VMD_CFGBAR 0#define VMD_MEMBAR1 2
Re: [PATCH 2/2] PCI: hotplug: Use preferred header file linux/io.h
In reply to Krzysztof WilczyńskiQuoted 14 lines · Krzysztof Wilczyński
Use the preferred generic header file
linux/io.hthat already includes the correspondingasm/io.hfile.Signed-off-by Krzysztof Wilczyński <[email protected]>--- drivers/pci/hotplug/cpqphp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pci/hotplug/cpqphp.h +0
-0
drivers/pci/hotplug/cpqphp.h line 21
Quoted 8 lines
drivers/pci/hotplug/cpqphp.h +1
-1@@ -15,7 +15,7 @@#define _CPQPHP_H#include <linux/interrupt.h> -#include <asm/io.h> /* for read? and write? functions */ +#include <linux/io.h> /* for read? and write? functions */ #include <linux/delay.h> /* for delays */ #include <linux/mutex.h> #include <linux/sched/signal.h> /* for signal_pending() */
Bjorn Helgaas
AppliedQuoted 6 lines · Krzysztof Wilczyński
Use the preferred generic header files
linux/device.handlinux/msi.hthat already include the correspondingasm/device.handasm/msi.hfiles, especially where the headers fileslinux/msi.handasm/msi.hwhere both included.Signed-off-by Krzysztof Wilczyński <[email protected]>
Applied both to pci/misc for v5.16, thanks!
Quoted 28 lines
--- drivers/pci/controller/vmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/pci/controller/vmd.c +1
-2@@ -9,6 +9,7 @@#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> @@ -18,8 +19,6 @@#include <linux/rcupdate.h> #include <asm/irqdomain.h> -#include <asm/device.h> -#include <asm/msi.h> #define VMD_CFGBAR 0#define VMD_MEMBAR1 2Signature · 1 line
2.33.0