diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-05-08 03:27:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:04 -0400 |
commit | e3869792990f708c97be5877499cada70d469bd3 (patch) | |
tree | d80ba64365ea7498bf91c267aa07d5ecca529fa3 /kernel | |
parent | 880ebdc5166aa6a0aa2a3218357a3d6e0eebcec8 (diff) |
kprobes: fix sparse NULL warning
Fix sparse NULL warnings:
kernel/kprobes.c:915:49: warning: Using plain integer as NULL pointer
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kprobes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index d25a9ada3f8e..6c86d67ed1a7 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/hash.h> | 35 | #include <linux/hash.h> |
36 | #include <linux/init.h> | 36 | #include <linux/init.h> |
37 | #include <linux/slab.h> | 37 | #include <linux/slab.h> |
38 | #include <linux/stddef.h> | ||
38 | #include <linux/module.h> | 39 | #include <linux/module.h> |
39 | #include <linux/moduleloader.h> | 40 | #include <linux/moduleloader.h> |
40 | #include <linux/kallsyms.h> | 41 | #include <linux/kallsyms.h> |
@@ -912,7 +913,7 @@ static int __kprobes debugfs_kprobe_init(void) | |||
912 | if (!dir) | 913 | if (!dir) |
913 | return -ENOMEM; | 914 | return -ENOMEM; |
914 | 915 | ||
915 | file = debugfs_create_file("list", 0444, dir , 0 , | 916 | file = debugfs_create_file("list", 0444, dir, NULL, |
916 | &debugfs_kprobes_operations); | 917 | &debugfs_kprobes_operations); |
917 | if (!file) { | 918 | if (!file) { |
918 | debugfs_remove(dir); | 919 | debugfs_remove(dir); |