瀏覽代碼

sb_edac: Mark get_mci_for_node_id as static

This patch marks the function get_mci_for_node_id() as static because it
is not used outside of sb_edac.c.

Thus, it also eliminates the following warning:
drivers/edac/sb_edac.c:918:22: warning: no previous prototype for ‘get_mci_for_node_id’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Link: http://lkml.kernel.org/r/0441f508186fc4eeabc8e9c3e4dde013d99405d4.1387029387.git.rashika.kheria@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Rashika Kheria 11 年之前
父節點
當前提交
8112c0cdf7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/edac/sb_edac.c

+ 1 - 1
drivers/edac/sb_edac.c

@@ -915,7 +915,7 @@ static void get_memory_layout(const struct mem_ctl_info *mci)
 	}
 	}
 }
 }
 
 
-struct mem_ctl_info *get_mci_for_node_id(u8 node_id)
+static struct mem_ctl_info *get_mci_for_node_id(u8 node_id)
 {
 {
 	struct sbridge_dev *sbridge_dev;
 	struct sbridge_dev *sbridge_dev;