浏览代码

powerpc: create kernel/setup.h

for functions defined by setup-common.c and used in setup_xx.c

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Stephen Rothwell 19 年之前
父节点
当前提交
66ba135c5a
共有 4 个文件被更改,包括 12 次插入0 次删除
  1. 2 0
      arch/powerpc/kernel/setup-common.c
  2. 6 0
      arch/powerpc/kernel/setup.h
  3. 2 0
      arch/powerpc/kernel/setup_32.c
  4. 2 0
      arch/powerpc/kernel/setup_64.c

+ 2 - 0
arch/powerpc/kernel/setup-common.c

@@ -53,6 +53,8 @@
 #include <asm/lmb.h>
 #include <asm/xmon.h>
 
+#include "setup.h"
+
 #undef DEBUG
 
 #ifdef DEBUG

+ 6 - 0
arch/powerpc/kernel/setup.h

@@ -0,0 +1,6 @@
+#ifndef _POWERPC_KERNEL_SETUP_H
+#define _POWERPC_KERNEL_SETUP_H
+
+void check_for_initrd(void);
+
+#endif /* _POWERPC_KERNEL_SETUP_H */

+ 2 - 0
arch/powerpc/kernel/setup_32.c

@@ -40,6 +40,8 @@
 #include <asm/xmon.h>
 #include <asm/time.h>
 
+#include "setup.h"
+
 #define DBG(fmt...)
 
 #if defined CONFIG_KGDB

+ 2 - 0
arch/powerpc/kernel/setup_64.c

@@ -61,6 +61,8 @@
 #include <asm/xmon.h>
 #include <asm/udbg.h>
 
+#include "setup.h"
+
 #ifdef DEBUG
 #define DBG(fmt...) udbg_printf(fmt)
 #else