From: Randy Dunlap Fix sparse NULL warnings: kernel/kprobes.c:915:49: warning: Using plain integer as NULL pointer Signed-off-by: Randy Dunlap Acked-by: Ananth N Mavinakayanahalli Signed-off-by: Andrew Morton --- kernel/kprobes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/kprobes.c~kprobes-fix-sparse-null-warning kernel/kprobes.c --- a/kernel/kprobes.c~kprobes-fix-sparse-null-warning +++ a/kernel/kprobes.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -912,7 +913,7 @@ static int __kprobes debugfs_kprobe_init if (!dir) return -ENOMEM; - file = debugfs_create_file("list", 0444, dir , 0 , + file = debugfs_create_file("list", 0444, dir, NULL, &debugfs_kprobes_operations); if (!file) { debugfs_remove(dir); _