On 25 February 2015 at 07:59, Alexey Brodkin <alexey.brod...@synopsys.com> wrote: > 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 <abrod...@synopsys.com> > Cc: Simon Glass <s...@chromium.org> > Cc: Tom Rini <tr...@ti.com> > --- > common/board_f.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >
Acked-by: Simon Glass <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot