pci-iommu_table.c: quiet sparse noise about plain integer as NULL pointer
PATCH 1/1 pci-iommu_table.c: quiet sparse noise about plain integer as NULL pointer
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 <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Joe Perches <[email protected]>
Cc Joerg Roedel <[email protected]>
---
arch/x86/kernel/pci-iommu_table.c +1 -1
@@ -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 ; } }