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>
This commit is contained in:
committed by
Ingo Molnar
parent
648340dff0
commit
1cc185211a
@@ -3464,7 +3464,7 @@ int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
|
|||||||
int ret, sub_handle;
|
int ret, sub_handle;
|
||||||
struct msi_desc *msidesc;
|
struct msi_desc *msidesc;
|
||||||
unsigned int irq_want;
|
unsigned int irq_want;
|
||||||
struct intel_iommu *iommu = 0;
|
struct intel_iommu *iommu = NULL;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
irq_want = nr_irqs_gsi;
|
irq_want = nr_irqs_gsi;
|
||||||
@@ -3599,7 +3599,7 @@ static void hpet_msi_set_affinity(unsigned int irq, const struct cpumask *mask)
|
|||||||
|
|
||||||
#endif /* CONFIG_SMP */
|
#endif /* CONFIG_SMP */
|
||||||
|
|
||||||
struct irq_chip hpet_msi_type = {
|
static struct irq_chip hpet_msi_type = {
|
||||||
.name = "HPET_MSI",
|
.name = "HPET_MSI",
|
||||||
.unmask = hpet_msi_unmask,
|
.unmask = hpet_msi_unmask,
|
||||||
.mask = hpet_msi_mask,
|
.mask = hpet_msi_mask,
|
||||||
|
Reference in New Issue
Block a user