summaryrefslogtreecommitdiff
path: root/include/ubi_uboot.h
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-09-01 20:58:03 +0400
committerWolfgang Denk <wd@denx.de>2009-09-04 22:16:40 +0200
commitd8bc55a6fb28876abcbf4a3fc3b6c3ce429c1bb3 (patch)
tree65966fdde9c05aec00985a739e2f7411dad38d1f /include/ubi_uboot.h
parentd72871e1387094972569e4b77c25e88020f7b68f (diff)
downloadu-boot-imx-d8bc55a6fb28876abcbf4a3fc3b6c3ce429c1bb3.zip
u-boot-imx-d8bc55a6fb28876abcbf4a3fc3b6c3ce429c1bb3.tar.gz
u-boot-imx-d8bc55a6fb28876abcbf4a3fc3b6c3ce429c1bb3.tar.bz2
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>
Diffstat (limited to 'include/ubi_uboot.h')
-rw-r--r--include/ubi_uboot.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h
index 74312ab..60f6a5f 100644
--- a/include/ubi_uboot.h
+++ b/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(...)