On Wed, Feb 25, 2015 at 05:59:02PM +0300, Alexey Brodkin 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> > Acked-by: Simon Glass <s...@chromium.org>
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot