* [U-Boot] [PATCH v2] spl, spl_nor: fix compiler warning
@ 2015-02-06 8:31 Heiko Schocher
2015-02-17 20:22 ` [U-Boot] [U-Boot,v2] " Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Schocher @ 2015-02-06 8:31 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>
---
Changes in v2:
- add comment from Masahiro Yamada:
- add const to "struct image_header *header;"
- change subject prefix from "powerpc, mpc5xx" to "spl, spl_nor"
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..c2fee01 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
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [U-Boot,v2] spl, spl_nor: fix compiler warning
2015-02-06 8:31 [U-Boot] [PATCH v2] spl, spl_nor: fix compiler warning Heiko Schocher
@ 2015-02-17 20:22 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2015-02-17 20:22 UTC (permalink / raw)
To: u-boot
On Fri, Feb 06, 2015 at 09:31:36AM +0100, Heiko Schocher wrote:
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150217/894c9155/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-17 20:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-06 8:31 [U-Boot] [PATCH v2] spl, spl_nor: fix compiler warning Heiko Schocher
2015-02-17 20:22 ` [U-Boot] [U-Boot,v2] " Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox