From: Heiko Schocher Date: Fri, 6 Feb 2015 08:31:36 +0000 (+0100) Subject: spl, spl_nor: fix compiler warning X-Git-Tag: v2015.04-rc2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b9ea0c3a2076c3ef8c150d35aa31f2329ad9efef;p=u-boot spl, spl_nor: fix compiler warning executing "tools/buildman/buildman mpc5xx" drops this warning: common/spl/spl_nor.c: In function 'spl_nor_load_image': common/spl/spl_nor.c:26:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] fix this. Signed-off-by: Heiko Schocher --- diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index 2c0e8e00dd..c2fee01ac1 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -17,7 +17,7 @@ void spl_nor_load_image(void) #ifdef CONFIG_SPL_OS_BOOT if (!spl_start_uboot()) { - struct image_header *header; + const struct image_header *header; /* * Load Linux from its location in NOR flash to its defined