diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-02-16 01:10:43 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-04-22 13:00:19 -0400 |
commit | 33e7e60c77ec89cd969ff5718f798f881c2832b7 (patch) | |
tree | f8000295659f1430b9463cc0735bab1ab302b6ef /arch/blackfin/include/asm/global_data.h | |
parent | 2790bf69dc12fb9aeb9836904e5f57c7f83d5552 (diff) | |
download | u-boot-33e7e60c77ec89cd969ff5718f798f881c2832b7.tar.gz u-boot-33e7e60c77ec89cd969ff5718f798f881c2832b7.tar.bz2 u-boot-33e7e60c77ec89cd969ff5718f798f881c2832b7.zip |
Blackfin: gd_t: relocate volatile markings
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>
Diffstat (limited to 'arch/blackfin/include/asm/global_data.h')
-rw-r--r-- | arch/blackfin/include/asm/global_data.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/global_data.h b/arch/blackfin/include/asm/global_data.h index 67aa30f04c..973ea2929a 100644 --- a/arch/blackfin/include/asm/global_data.h +++ b/arch/blackfin/include/asm/global_data.h @@ -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 |