diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-01-25 00:29:55 -0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-25 10:40:00 -0500 |
commit | 4019e54dc69ef088a46ef644b9cc2deee498c148 (patch) | |
tree | 54703f6907957fd341c4babea4c5961534a12aea /scripts | |
parent | b3ce90815cee3ba311c2403b9772976daf9ed41c (diff) |
powerpc: tqm834x: Fix build warnings in initdram()
With gcc 4.9, it produces the following warnings:
CC board/tqc/tqm834x/tqm834x.o
board/tqc/tqm834x/tqm834x.c: In function 'initdram':
board/tqc/tqm834x/tqm834x.c:325:12: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]
(((base + size - 1) >> CSBNDS_EA_SHIFT) &
^
board/tqc/tqm834x/tqm834x.c:80:2: note: containing loop
for(cs = 0; cs < 4; ++cs) {
^
There is an integer overflow when cs = 3. To fix it, change
parameters of set_cs_bounds() to ulong.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions