diff --git a/include/version.h b/include/version.h
index ec4e1f808d518e749352eb30b6888322aefd182c..129acef0b8335f4d4376755ad2ad9910a8bc0004 100644
--- a/include/version.h
+++ b/include/version.h
@@ -37,6 +37,7 @@
 #define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \
 	U_BOOT_TIME ")" CONFIG_IDENT_STRING
 
+#ifndef __ASSEMBLY__
 extern const char version_string[];
-
+#endif	/* __ASSEMBLY__ */
 #endif	/* __VERSION_H__ */