diff --git a/common/main.c b/common/main.c
index 8052d4222ec82b8ddd9d9b2b0528bfb6ff67c9bd..5362781f18700ee7e98547e07a5f673635b52666 100644
--- a/common/main.c
+++ b/common/main.c
@@ -53,9 +53,7 @@
 #include <linux/ctype.h>
 #include <menu.h>
 
-#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST) || defined(CONFIG_CMDLINE_EDITING)
 DECLARE_GLOBAL_DATA_PTR;
-#endif
 
 /*
  * Board-specific Platform code can reimplement show_boot_progress () if needed