Skip to contentSkip to conversation

PCI: vmd: Use preferred header files linux/device.h and linux/msi.h

PATCH Applied Krzysztof Wilczyński 3 participants 5 messages Oct 13, 2021 – Nov 2, 2021

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

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
index a5987e52700e..9609eb911349 100644
@@ -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
#1 lore raw

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
index 77e4e0142fbc..2f7b49ea96e2 100644
@@ -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
reviewer Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] PCI: hotplug: Use preferred header file linux/io.h

Quoted 14 lines · Krzysztof Wilczyński

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 +0 -0
index 77e4e0142fbc..2f7b49ea96e2 100644

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() */
reviewer Reviewed-by on v1 1/2
#3 lore raw
In reply to Krzysztof Wilczyński
Quoted 24 lines · Krzysztof Wilczyński

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 -0
index a5987e52700e..9609eb911349 100644
@@ -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
#4 lore raw
In reply to Krzysztof Wilczyński
Quoted 6 lines · Krzysztof Wilczyński

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.

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
index a5987e52700e..9609eb911349 100644
@@ -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