aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Vorobiev <dmitri.vorobiev@movial.com>2009-03-22 13:11:09 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-22 13:15:14 -0400
commit1cc185211a9cb913f6adbe3354e5c256f456ebd2 (patch)
tree6adb02b5273a17b0250005a6e8bdbe0b01b6e25b
parent648340dff02eff10cc08fa4e8d20442d7a238768 (diff)
x86: Fix a couple of sparse warnings in arch/x86/kernel/apic/io_apic.c
Impact: cleanup This patch fixes the following sparse warnings: arch/x86/kernel/apic/io_apic.c:3602:17: warning: symbol 'hpet_msi_type' was not declared. Should it be static? arch/x86/kernel/apic/io_apic.c:3467:30: warning: Using plain integer as NULL pointer Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com> LKML-Reference: <1237741871-5827-2-git-send-email-dmitri.vorobiev@movial.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/apic/io_apic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 42cdc78427a2..ea97e5efa907 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -3464,7 +3464,7 @@ int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
3464 int ret, sub_handle; 3464 int ret, sub_handle;
3465 struct msi_desc *msidesc; 3465 struct msi_desc *msidesc;
3466 unsigned int irq_want; 3466 unsigned int irq_want;
3467 struct intel_iommu *iommu = 0; 3467 struct intel_iommu *iommu = NULL;
3468 int index = 0; 3468 int index = 0;
3469 3469
3470 irq_want = nr_irqs_gsi; 3470 irq_want = nr_irqs_gsi;
@@ -3599,7 +3599,7 @@ static void hpet_msi_set_affinity(unsigned int irq, const struct cpumask *mask)
3599 3599
3600#endif /* CONFIG_SMP */ 3600#endif /* CONFIG_SMP */
3601 3601
3602struct irq_chip hpet_msi_type = { 3602static struct irq_chip hpet_msi_type = {
3603 .name = "HPET_MSI", 3603 .name = "HPET_MSI",
3604 .unmask = hpet_msi_unmask, 3604 .unmask = hpet_msi_unmask,
3605 .mask = hpet_msi_mask, 3605 .mask = hpet_msi_mask,