summaryrefslogtreecommitdiff
path: root/board/samsung
diff options
context:
space:
mode:
authorƁukasz Majewski <l.majewski@samsung.com>2015-03-04 10:54:48 +0100
committerMinkyu Kang <mk7.kang@samsung.com>2015-03-04 20:01:01 +0900
commitc8b71a35289112f77691df0d0b4a97ef19dac87b (patch)
tree1848f2ad0d7552ed2c47d062f430c852c60a92cb /board/samsung
parent19e5118d1c4c9bd2dc9e52355774c8ea73839b5b (diff)
samsung: board: fix: Define loop iterator as an unsigned int to suppress gcc 4.8 warning
This patch suppress following warning: board/samsung/common/board.c:95:32: warning: iteration 4u invokes undefined behavior [-Waggressive-loop-optimizations] addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE); ^ board/samsung/common/board.c:94:2: note: containing loop about possible signed integer overflow at gcc 4.8.2 (odroid board) Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung')
-rw-r--r--board/samsung/common/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 6c7f59be871..97950fa1920 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -88,7 +88,7 @@ int board_init(void)
int dram_init(void)
{
- int i;
+ unsigned int i;
u32 addr;
for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
@@ -100,7 +100,7 @@ int dram_init(void)
void dram_init_banksize(void)
{
- int i;
+ unsigned int i;
u32 addr, size;
for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {