summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 00:35:41 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 00:35:41 -0700
commit9893721cdf2953fdafd90988899307ec14794f4c (patch)
tree257e88d2751bc57fc6a07eca96011e6fd4eb1379 /include/linux
parent4d1ae8c58dd8a8505a7684fa393c95da04082ef7 (diff)
sparse: fix pointer/integer confusion
I don't think we're in K&R any more, Toto. If you want a NULL pointer, use NULL. Don't use an integer. Most of the users really didn't seem to know the proper type.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/hugetlb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index 17f9f8384288..7bf578e512b7 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -75,7 +75,7 @@ static inline unsigned long hugetlb_total_pages(void)
#define hugetlb_report_meminfo(buf) 0
#define hugetlb_report_node_meminfo(n, buf) 0
#define mark_mm_hugetlb(mm, vma) do { } while (0)
-#define follow_huge_pmd(mm, addr, pmd, write) 0
+#define follow_huge_pmd(mm, addr, pmd, write) NULL
#define is_aligned_hugepage_range(addr, len) 0
#define prepare_hugepage_range(addr, len) (-EINVAL)
#define pmd_huge(x) 0