From: Anton Vorontsov Date: Tue, 1 Sep 2009 16:58:03 +0000 (+0400) Subject: Move uninitialized_var() macro from ubi_uboot.h to compiler.h X-Git-Tag: v2010.09-rc1~28^2~7^2~42^2~167 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=88f9d60b62829ea2a948b9c20fc8a3df94b512bd;p=u-boot 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 --- diff --git a/include/compiler.h b/include/compiler.h index 272fd3cf62..e602cce2e9 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -122,4 +122,7 @@ typedef unsigned int uintptr_t; #endif +/* compiler options */ +#define uninitialized_var(x) x = x + #endif diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h index 74312abf03..60f6a5fb4f 100644 --- a/include/ubi_uboot.h +++ b/include/ubi_uboot.h @@ -15,6 +15,7 @@ #define __UBOOT_UBI_H #include +#include #include #include #include @@ -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(...)