projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2397134
)
x86/iommu: Use NULL instead of 0
author
Zhong Jiang
<zhongjiang@huawei.com>
Sat, 21 Jul 2018 08:33:24 +0000
(16:33 +0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 2 Aug 2018 12:33:19 +0000
(14:33 +0200)
Fixes the following sparse warning:
arch/x86/kernel/pci-iommu_table.c:63:37: warning: Using plain integer as NULL pointer
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <hpa@zytor.com>
Cc: <gregkh@linuxfoundation.org>
Link:
https://lkml.kernel.org/r/1532162004-24670-1-git-send-email-zhongjiang@huawei.com
arch/x86/kernel/pci-iommu_table.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/pci-iommu_table.c
b/arch/x86/kernel/pci-iommu_table.c
index 4dfd90a75e63a13fe37469982d727347f9359e01..2e9006c1e240884b5f5fa28e0b4e442f39d412c4 100644
(file)
--- 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
;
}
}