public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] powerpc, mpc5xx: fix compiler warning
@ 2015-02-03 10:10 Heiko Schocher
  2015-02-03 10:53 ` Masahiro Yamada
  2015-02-03 10:56 ` Masahiro Yamada
  0 siblings, 2 replies; 6+ messages in thread
From: Heiko Schocher @ 2015-02-03 10:10 UTC (permalink / raw)
  To: u-boot

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 <hs@denx.de>
---

 common/spl/spl_nor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
index 2c0e8e0..dcba2e0 100644
--- a/common/spl/spl_nor.c
+++ b/common/spl/spl_nor.c
@@ -23,7 +23,7 @@ void spl_nor_load_image(void)
 		 * Load Linux from its location in NOR flash to its defined
 		 * location in SDRAM
 		 */
-		header = (const struct image_header *)CONFIG_SYS_OS_BASE;
+		header = (struct image_header *)CONFIG_SYS_OS_BASE;
 
 		if (image_get_os(header) == IH_OS_LINUX) {
 			/* happy - was a Linux */
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-03 11:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-03 10:10 [U-Boot] [PATCH] powerpc, mpc5xx: fix compiler warning Heiko Schocher
2015-02-03 10:53 ` Masahiro Yamada
2015-02-03 11:19   ` Heiko Schocher
2015-02-03 10:56 ` Masahiro Yamada
2015-02-03 11:21   ` Heiko Schocher
2015-02-03 11:39     ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox