summaryrefslogtreecommitdiff
path: root/include/ali512x.h
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2015-02-25 17:59:02 +0300
committerTom Rini <trini@konsulko.com>2015-03-05 20:50:29 -0500
commit7bf9f20d0246e0985c5c06bb56b3e9ce9300fcde (patch)
tree220ae47d7a845d5bdefa161077dc0c58993d2c29 /include/ali512x.h
parentbc55c07a2bc8435d427707d96b3b08fe1fa00198 (diff)
downloadu-boot-imx-7bf9f20d0246e0985c5c06bb56b3e9ce9300fcde.zip
u-boot-imx-7bf9f20d0246e0985c5c06bb56b3e9ce9300fcde.tar.gz
u-boot-imx-7bf9f20d0246e0985c5c06bb56b3e9ce9300fcde.tar.bz2
common/board_f: implement type casting for gd structure
In case of global data structure defined as "register volatile" compiler throws an warning about incorrect type used: --->8--- common/board_f.c: In function "board_init_f_r": common/board_f.c:1073:2: warning: passing argument 1 of "&board_init_r +(sizetype)gd->reloc_off" discards "volatile" qualifier from pointer target type [enabled by default] (board_init_r + gd->reloc_off)(gd, gd->relocaddr); ^ common/board_f.c:1073:2: note: expected "struct gd_t *" but argument is of type "volatile struct gd_t *" --->8--- An obvious fix is manual casting to "gd_t *". Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@ti.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/ali512x.h')
0 files changed, 0 insertions, 0 deletions