]> git.sur5r.net Git - u-boot/commitdiff
Move uninitialized_var() macro from ubi_uboot.h to compiler.h
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 1 Sep 2009 16:58:03 +0000 (20:58 +0400)
committerWolfgang Denk <wd@denx.de>
Fri, 4 Sep 2009 20:16:40 +0000 (22:16 +0200)
This is needed so that we could use this macro for non-UBI code.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
include/compiler.h
include/ubi_uboot.h

index 272fd3cf628c758f9a4d5f019d2a093f2955c47a..e602cce2e9b99fc5f86b6523972ec909bf127fa1 100644 (file)
@@ -122,4 +122,7 @@ typedef unsigned int            uintptr_t;
 
 #endif
 
+/* compiler options */
+#define uninitialized_var(x)           x = x
+
 #endif
index 74312abf0394fbbe2f7c0d151080a1aef8933acf..60f6a5fb4f53ed7464f1c5d3d53d088d501ef494 100644 (file)
@@ -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(...)