* [PATCH] pci-iommu_table.c: quiet sparse noise about plain integer as NULL pointer
@ 2011-09-09 21:58 H Hartley Sweeten
0 siblings, 0 replies; only message in thread
From: H Hartley Sweeten @ 2011-09-09 21:58 UTC (permalink / raw)
To: Linux Kernel; +Cc: x86, tglx, mingo, hpa, joe, joerg.roedel
x->depend is an initcall_t, NULL should be used to zero it, not 0. This
quiets the following sparse noise:
warning: Using plain integer as NULL pointer
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Joe Perches <joe@perches.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>
---
diff --git a/arch/x86/kernel/pci-iommu_table.c b/arch/x86/kernel/pci-iommu_table.c
index 35ccf75..75c3c40 100644
--- a/arch/x86/kernel/pci-iommu_table.c
+++ b/arch/x86/kernel/pci-iommu_table.c
@@ -59,7 +59,7 @@ void __init check_iommu_entries(struct iommu_table_entry *start,
printk(KERN_ERR "CYCLIC DEPENDENCY FOUND! %pS depends on %pS and vice-versa. BREAKING IT.\n",
p->detect, q->detect);
/* Heavy handed way..*/
- x->depend = 0;
+ x->depend = NULL;
}
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-09 21:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-09 21:58 [PATCH] pci-iommu_table.c: quiet sparse noise about plain integer as NULL pointer H Hartley Sweeten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox