]> git.karo-electronics.de Git - linux-beck.git/commitdiff
EDAC: Mark edac_create_debug_nodes as static
authorRashika Kheria <rashika.kheria@gmail.com>
Sat, 14 Dec 2013 14:00:11 +0000 (19:30 +0530)
committerBorislav Petkov <bp@suse.de>
Sun, 15 Dec 2013 16:59:59 +0000 (17:59 +0100)
This patch marks the function edac_create_debug_nodes() as static
because it is not used outside of edac_mc_sysfs.c.

Thus, it also eliminates the following warning:
drivers/edac/edac_mc_sysfs.c:917:5: warning: no previous prototype for ‘edac_create_debug_nodes’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Link: http://lkml.kernel.org/r/a1c863b08c0d6f67d03280cf908c771bf26a3239.1387029387.git.rashika.kheria@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_mc_sysfs.c

index 9f7e0e609516c536ae9a7366f8e1c23e1c6cf32c..51c0362acf5c456db84eb0786722c284849b30b9 100644 (file)
@@ -914,7 +914,7 @@ void __exit edac_debugfs_exit(void)
        debugfs_remove(edac_debugfs);
 }
 
-int edac_create_debug_nodes(struct mem_ctl_info *mci)
+static int edac_create_debug_nodes(struct mem_ctl_info *mci)
 {
        struct dentry *d, *parent;
        char name[80];