diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2012-05-08 03:08:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-05-08 05:17:30 -0400 |
commit | 82b481e80d8a17720b5805393684a95184cfb6bb (patch) | |
tree | 97bb317b7c9a80ef39114b40446b76271bc3bb44 /drivers/iommu | |
parent | 399988eea194a8453e283fdd2da968d1fd39a7cf (diff) |
irq_remap: Fix UP build failure
Fix the below UP build failure with CONFIG_IRQ_REMAP enabled.
drivers/iommu/intel_irq_remapping.c:955:19: error: ‘struct irq_data’ has no member named ‘affinity’
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: joro@8bytes.org
Cc: iommu@lists.linux-foundation.org
Cc: Joerg Roedel <joerg.roedel@amd.com>
Link: http://lkml.kernel.org/r/1336460934-23592-2-git-send-email-suresh.b.siddha@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/intel_irq_remapping.c | 4 | ||||
-rw-r--r-- | drivers/iommu/irq_remapping.c | 2 | ||||
-rw-r--r-- | drivers/iommu/irq_remapping.h | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index b4d39507681a..1c0255e4ff29 100644 --- a/drivers/iommu/intel_irq_remapping.c +++ b/drivers/iommu/intel_irq_remapping.c | |||
@@ -902,6 +902,7 @@ static int intel_setup_ioapic_entry(int irq, | |||
902 | return 0; | 902 | return 0; |
903 | } | 903 | } |
904 | 904 | ||
905 | #ifdef CONFIG_SMP | ||
905 | /* | 906 | /* |
906 | * Migrate the IO-APIC irq in the presence of intr-remapping. | 907 | * Migrate the IO-APIC irq in the presence of intr-remapping. |
907 | * | 908 | * |
@@ -955,6 +956,7 @@ intel_ioapic_set_affinity(struct irq_data *data, const struct cpumask *mask, | |||
955 | cpumask_copy(data->affinity, mask); | 956 | cpumask_copy(data->affinity, mask); |
956 | return 0; | 957 | return 0; |
957 | } | 958 | } |
959 | #endif | ||
958 | 960 | ||
959 | static void intel_compose_msi_msg(struct pci_dev *pdev, | 961 | static void intel_compose_msi_msg(struct pci_dev *pdev, |
960 | unsigned int irq, unsigned int dest, | 962 | unsigned int irq, unsigned int dest, |
@@ -1056,7 +1058,9 @@ struct irq_remap_ops intel_irq_remap_ops = { | |||
1056 | .reenable = reenable_irq_remapping, | 1058 | .reenable = reenable_irq_remapping, |
1057 | .enable_faulting = enable_drhd_fault_handling, | 1059 | .enable_faulting = enable_drhd_fault_handling, |
1058 | .setup_ioapic_entry = intel_setup_ioapic_entry, | 1060 | .setup_ioapic_entry = intel_setup_ioapic_entry, |
1061 | #ifdef CONFIG_SMP | ||
1059 | .set_affinity = intel_ioapic_set_affinity, | 1062 | .set_affinity = intel_ioapic_set_affinity, |
1063 | #endif | ||
1060 | .free_irq = free_irte, | 1064 | .free_irq = free_irte, |
1061 | .compose_msi_msg = intel_compose_msi_msg, | 1065 | .compose_msi_msg = intel_compose_msi_msg, |
1062 | .msi_alloc_irq = intel_msi_alloc_irq, | 1066 | .msi_alloc_irq = intel_msi_alloc_irq, |
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c index 1cf350e02da8..40cda8e98d87 100644 --- a/drivers/iommu/irq_remapping.c +++ b/drivers/iommu/irq_remapping.c | |||
@@ -111,6 +111,7 @@ int setup_ioapic_remapped_entry(int irq, | |||
111 | vector, attr); | 111 | vector, attr); |
112 | } | 112 | } |
113 | 113 | ||
114 | #ifdef CONFIG_SMP | ||
114 | int set_remapped_irq_affinity(struct irq_data *data, const struct cpumask *mask, | 115 | int set_remapped_irq_affinity(struct irq_data *data, const struct cpumask *mask, |
115 | bool force) | 116 | bool force) |
116 | { | 117 | { |
@@ -119,6 +120,7 @@ int set_remapped_irq_affinity(struct irq_data *data, const struct cpumask *mask, | |||
119 | 120 | ||
120 | return remap_ops->set_affinity(data, mask, force); | 121 | return remap_ops->set_affinity(data, mask, force); |
121 | } | 122 | } |
123 | #endif | ||
122 | 124 | ||
123 | void free_remapped_irq(int irq) | 125 | void free_remapped_irq(int irq) |
124 | { | 126 | { |
diff --git a/drivers/iommu/irq_remapping.h b/drivers/iommu/irq_remapping.h index b12974cc1dfe..be9d72950c51 100644 --- a/drivers/iommu/irq_remapping.h +++ b/drivers/iommu/irq_remapping.h | |||
@@ -59,9 +59,11 @@ struct irq_remap_ops { | |||
59 | unsigned int, int, | 59 | unsigned int, int, |
60 | struct io_apic_irq_attr *); | 60 | struct io_apic_irq_attr *); |
61 | 61 | ||
62 | #ifdef CONFIG_SMP | ||
62 | /* Set the CPU affinity of a remapped interrupt */ | 63 | /* Set the CPU affinity of a remapped interrupt */ |
63 | int (*set_affinity)(struct irq_data *data, const struct cpumask *mask, | 64 | int (*set_affinity)(struct irq_data *data, const struct cpumask *mask, |
64 | bool force); | 65 | bool force); |
66 | #endif | ||
65 | 67 | ||
66 | /* Free an IRQ */ | 68 | /* Free an IRQ */ |
67 | int (*free_irq)(int); | 69 | int (*free_irq)(int); |