Skip to contentSkip to conversation

amd_iommu: Remove local PCI_BUS() define and use PCI_BUS() from pci

PATCH Superseded Shuah Khan 1 participant 1 message Feb 11, 2013

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Shuah Khan

author
#0 lore raw

PATCH 3/4 amd_iommu: Remove local PCI_BUS() define and use PCI_BUS() from pci

Change to remove local PCI_BUS() define and use the new PCI_BUS interface from pci.

---
 drivers/iommu/amd_iommu_types.h |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/iommu/amd_iommu_types.h +1 -3
index e38ab43..a07882f 100644
@@ -24,6 +24,7 @@
 #include <linux/mutex.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
+#include <linux/pci.h>
 
 /*
  * Maximum number of IOMMUs supported
@@ -315,9 +316,6 @@
 
 #define MAX_DOMAIN_ID 65536
 
-/* FIXME: move this macro to <linux/pci.h> */
-#define PCI_BUS(x) (((x) >> 8) & 0xff)
-
 /* Protection domain flags */
 #define PD_DMA_OPS_MASK		(1UL << 0) /* domain used for dma_ops */
 #define PD_DEFAULT_MASK		(1UL << 1) /* domain is a default dma_ops
Signature · 1 line
1.7.9.5