This is needed so that we could use this macro for non-UBI code.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
 
 #endif
 
+/* compiler options */
+#define uninitialized_var(x)           x = x
+
 #endif
 
 #define __UBOOT_UBI_H
 
 #include <common.h>
+#include <compiler.h>
 #include <malloc.h>
 #include <div64.h>
 #include <linux/crc32.h>
 #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(...)