]> Git Repo - linux.git/commitdiff
kprobes: fix sparse NULL warning
authorRandy Dunlap <[email protected]>
Tue, 8 May 2007 07:27:01 +0000 (00:27 -0700)
committerLinus Torvalds <[email protected]>
Tue, 8 May 2007 18:15:04 +0000 (11:15 -0700)
Fix sparse NULL warnings:
kernel/kprobes.c:915:49: warning: Using plain integer as NULL pointer

Signed-off-by: Randy Dunlap <[email protected]>
Acked-by: Ananth N Mavinakayanahalli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/kprobes.c

index d25a9ada3f8eb57c8b6ab2ac43e7123fb49ffa9f..6c86d67ed1a71aba7063b26c37afd6c7a40aa911 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/hash.h>
 #include <linux/init.h>
 #include <linux/slab.h>
+#include <linux/stddef.h>
 #include <linux/module.h>
 #include <linux/moduleloader.h>
 #include <linux/kallsyms.h>
@@ -912,7 +913,7 @@ static int __kprobes debugfs_kprobe_init(void)
        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);
This page took 0.052966 seconds and 4 git commands to generate.