diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-06-01 04:05:42 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-16 17:31:37 -0400 |
commit | 507a883ed5396825b88631b06cd27e050f5aa8fe (patch) | |
tree | 847c43975ca1483ccd096f6e43e155b11d490d4a | |
parent | c391f262bee9d0d6424a99c85183a06c50e307ee (diff) |
treewide: Use helper function to access irq_data->msi_desc
Use irq_data access helper to access irq_data->msi_desc, so we can
move msi_desc from struct irq_data into struct irq_common_data later.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/ia64/kernel/msi_ia64.c | 2 | ||||
-rw-r--r-- | arch/ia64/sn/kernel/msi_sn.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/xics/ics-opal.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/xics/ics-rtas.c | 2 | ||||
-rw-r--r-- | arch/tile/kernel/pci_gx.c | 2 | ||||
-rw-r--r-- | drivers/pci/msi.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/arch/ia64/kernel/msi_ia64.c b/arch/ia64/kernel/msi_ia64.c index d70bf15c690a..4d3053e25394 100644 --- a/arch/ia64/kernel/msi_ia64.c +++ b/arch/ia64/kernel/msi_ia64.c | |||
@@ -23,7 +23,7 @@ static int ia64_set_msi_irq_affinity(struct irq_data *idata, | |||
23 | if (irq_prepare_move(irq, cpu)) | 23 | if (irq_prepare_move(irq, cpu)) |
24 | return -1; | 24 | return -1; |
25 | 25 | ||
26 | __get_cached_msi_msg(idata->msi_desc, &msg); | 26 | __get_cached_msi_msg(irq_data_get_msi_desc(idata), &msg); |
27 | 27 | ||
28 | addr = msg.address_lo; | 28 | addr = msg.address_lo; |
29 | addr &= MSI_ADDR_DEST_ID_MASK; | 29 | addr &= MSI_ADDR_DEST_ID_MASK; |
diff --git a/arch/ia64/sn/kernel/msi_sn.c b/arch/ia64/sn/kernel/msi_sn.c index a0eb27b66d13..59ba6322b9f6 100644 --- a/arch/ia64/sn/kernel/msi_sn.c +++ b/arch/ia64/sn/kernel/msi_sn.c | |||
@@ -175,7 +175,7 @@ static int sn_set_msi_irq_affinity(struct irq_data *data, | |||
175 | * Release XIO resources for the old MSI PCI address | 175 | * Release XIO resources for the old MSI PCI address |
176 | */ | 176 | */ |
177 | 177 | ||
178 | __get_cached_msi_msg(data->msi_desc, &msg); | 178 | __get_cached_msi_msg(irq_data_get_msi_desc(data), &msg); |
179 | sn_pdev = (struct pcidev_info *)sn_irq_info->irq_pciioinfo; | 179 | sn_pdev = (struct pcidev_info *)sn_irq_info->irq_pciioinfo; |
180 | pdev = sn_pdev->pdi_linux_pcidev; | 180 | pdev = sn_pdev->pdi_linux_pcidev; |
181 | provider = SN_PCIDEV_BUSPROVIDER(pdev); | 181 | provider = SN_PCIDEV_BUSPROVIDER(pdev); |
diff --git a/arch/powerpc/sysdev/xics/ics-opal.c b/arch/powerpc/sysdev/xics/ics-opal.c index 68c7e5cc98e0..11ac964d5175 100644 --- a/arch/powerpc/sysdev/xics/ics-opal.c +++ b/arch/powerpc/sysdev/xics/ics-opal.c | |||
@@ -72,7 +72,7 @@ static unsigned int ics_opal_startup(struct irq_data *d) | |||
72 | * card, using the MSI mask bits. Firmware doesn't appear to unmask | 72 | * card, using the MSI mask bits. Firmware doesn't appear to unmask |
73 | * at that level, so we do it here by hand. | 73 | * at that level, so we do it here by hand. |
74 | */ | 74 | */ |
75 | if (d->msi_desc) | 75 | if (irq_data_get_msi_desc(d)) |
76 | pci_msi_unmask_irq(d); | 76 | pci_msi_unmask_irq(d); |
77 | #endif | 77 | #endif |
78 | 78 | ||
diff --git a/arch/powerpc/sysdev/xics/ics-rtas.c b/arch/powerpc/sysdev/xics/ics-rtas.c index 0af97deb83f3..d1c625c4cc5a 100644 --- a/arch/powerpc/sysdev/xics/ics-rtas.c +++ b/arch/powerpc/sysdev/xics/ics-rtas.c | |||
@@ -75,7 +75,7 @@ static unsigned int ics_rtas_startup(struct irq_data *d) | |||
75 | * card, using the MSI mask bits. Firmware doesn't appear to unmask | 75 | * card, using the MSI mask bits. Firmware doesn't appear to unmask |
76 | * at that level, so we do it here by hand. | 76 | * at that level, so we do it here by hand. |
77 | */ | 77 | */ |
78 | if (d->msi_desc) | 78 | if (irq_data_get_msi_desc(d)) |
79 | pci_msi_unmask_irq(d); | 79 | pci_msi_unmask_irq(d); |
80 | #endif | 80 | #endif |
81 | /* unmask it */ | 81 | /* unmask it */ |
diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c index b1df847d0686..65b701b3b5ed 100644 --- a/arch/tile/kernel/pci_gx.c +++ b/arch/tile/kernel/pci_gx.c | |||
@@ -1442,7 +1442,7 @@ static struct pci_ops tile_cfg_ops = { | |||
1442 | /* MSI support starts here. */ | 1442 | /* MSI support starts here. */ |
1443 | static unsigned int tilegx_msi_startup(struct irq_data *d) | 1443 | static unsigned int tilegx_msi_startup(struct irq_data *d) |
1444 | { | 1444 | { |
1445 | if (d->msi_desc) | 1445 | if (irq_data_get_msi_desc(d)) |
1446 | pci_msi_unmask_irq(d); | 1446 | pci_msi_unmask_irq(d); |
1447 | 1447 | ||
1448 | return 0; | 1448 | return 0; |
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 64673f13bbb9..157eb8817fb8 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -1145,7 +1145,7 @@ EXPORT_SYMBOL(pci_enable_msix_range); | |||
1145 | */ | 1145 | */ |
1146 | void pci_msi_domain_write_msg(struct irq_data *irq_data, struct msi_msg *msg) | 1146 | void pci_msi_domain_write_msg(struct irq_data *irq_data, struct msi_msg *msg) |
1147 | { | 1147 | { |
1148 | struct msi_desc *desc = irq_data->msi_desc; | 1148 | struct msi_desc *desc = irq_data_get_msi_desc(irq_data); |
1149 | 1149 | ||
1150 | /* | 1150 | /* |
1151 | * For MSI-X desc->irq is always equal to irq_data->irq. For | 1151 | * For MSI-X desc->irq is always equal to irq_data->irq. For |