[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1532162004-24670-1-git-send-email-zhongjiang@huawei.com>
Date: Sat, 21 Jul 2018 16:33:24 +0800
From: zhong jiang <zhongjiang@...wei.com>
To: <mingo@...hat.com>, <tglx@...utronix.de>
CC: <hpa@...or.com>, <x86@...nel.org>, <linux-kernel@...r.kernel.org>,
<gregkh@...uxfoundation.org>
Subject: [PATCH linux-next] x86: should use NULL pointer to replace plain integer
Fixes the following sparse warnings:
arch/x86/kernel/pci-iommu_table.c:63:37: warning: Using plain integer as NULL pointer
Signed-off-by: zhong jiang <zhongjiang@...wei.com>
---
arch/x86/kernel/pci-iommu_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/pci-iommu_table.c b/arch/x86/kernel/pci-iommu_table.c
index 4dfd90a..2e9006c 100644
--- a/arch/x86/kernel/pci-iommu_table.c
+++ b/arch/x86/kernel/pci-iommu_table.c
@@ -60,7 +60,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;
}
}
--
1.7.12.4
Powered by blists - more mailing lists