]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Blackfin: gd_t: relocate volatile markings
authorMike Frysinger <vapier@gentoo.org>
Thu, 16 Feb 2012 06:10:43 +0000 (01:10 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 22 Apr 2012 17:00:19 +0000 (13:00 -0400)
This makes Blackfin behave the same as other ports, and fixes many gcc
warnings that show up with 4.5+:
board.c:40:1: warning: optimization may eliminate reads and/or
writes to register variables

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/global_data.h

index 67aa30f04c4c811cc5055de2f2c4958906668fd7..973ea2929a8640688bb9066dbcf02bd7c4ebdb12 100644 (file)
@@ -73,6 +73,6 @@ typedef struct global_data {
 #define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out)           */
 #define GD_FLG_ENV_READY       0x00080 /* Environment imported into hash table */
 
-#define DECLARE_GLOBAL_DATA_PTR     register gd_t * volatile gd asm ("P3")
+#define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("P3")
 
 #endif