浏览代码

kgdb: sparse fix

- Fix warning reported by sparse
kernel/kgdb.c:1502:6: warning: symbol 'kgdb_console_write' was not declared.
	Should it be static?

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Jason Wessel 17 年之前
父节点
当前提交
aabdc3b8c3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      kernel/kgdb.c

+ 2 - 1
kernel/kgdb.c

@@ -1499,7 +1499,8 @@ int kgdb_nmicallback(int cpu, void *regs)
 	return 1;
 	return 1;
 }
 }
 
 
-void kgdb_console_write(struct console *co, const char *s, unsigned count)
+static void kgdb_console_write(struct console *co, const char *s,
+   unsigned count)
 {
 {
 	unsigned long flags;
 	unsigned long flags;