2012/7/27 Marek Vasut <ma...@denx.de>:
> The timer code contains more halfword writes which trigger gcc errors.
> The registers are again 32bit, yet written by 16bit writes, fix this:
>
> timer.c: In function ‘reset_timer_masked’:
> timer.c:37:2: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules [-Wstrict-aliasing]
> timer.c: In function ‘get_timer_masked’:
> timer.c:43:2: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules [-Wstrict-aliasing]
> timer.c: In function ‘timer_init’:
> timer.c:86:2: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules [-Wstrict-aliasing]
> timer.c:88:2: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules [-Wstrict-aliasing]
> timer.c:89:2: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules [-Wstrict-aliasing]
> timer.c:90:2: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules [-Wstrict-aliasing]
>
> Signed-off-by: Marek Vasut <ma...@denx.de>
> Cc: Daniel <z...@ingenic.cn>
> Cc: Shinya Kuribayashi <skuri...@pobox.com>
> Cc: Xiangfu Liu <xian...@openmobilefree.net>
> ---
>  arch/mips/cpu/xburst/timer.c |   12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

applied to u-boot-mips/master, thanks

-- 
Best regards,
Daniel
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to