浏览代码

Move uninitialized_var() macro from ubi_uboot.h to compiler.h

This is needed so that we could use this macro for non-UBI code.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Anton Vorontsov 14 年之前
父节点
当前提交
d8bc55a6fb
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 3 0
      include/compiler.h
  2. 1 3
      include/ubi_uboot.h

+ 3 - 0
include/compiler.h

@@ -122,4 +122,7 @@ typedef unsigned int            uintptr_t;
 
 #endif
 
+/* compiler options */
+#define uninitialized_var(x)		x = x
+
 #endif

+ 1 - 3
include/ubi_uboot.h

@@ -15,6 +15,7 @@
 #define __UBOOT_UBI_H
 
 #include <common.h>
+#include <compiler.h>
 #include <malloc.h>
 #include <div64.h>
 #include <linux/crc32.h>
@@ -51,9 +52,6 @@ do {									\
 #undef CONFIG_MTD_UBI_DEBUG_MSG_BLD
 #define CONFIG_MTD_UBI_DEBUG_DISABLE_BGT
 
-/* compiler options */
-#define uninitialized_var(x)		x = x
-
 /* build.c */
 #define get_device(...)
 #define put_device(...)