LMB: Fix undefined lmb_reserve() on non-lmb platforms
PATCH 1/1 LMB: Fix undefined lmb_reserve() on non-lmb platforms
--- common/cmd_bootm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
common/cmd_bootm.c +1 -0
@@ -186,6 +186,7 @@ static void boot_start_lmb(bootm_headers_t *images) board_lmb_reserve(&images->lmb); }#else +#define lmb_reserve (lmb, base, size)static inline void boot_start_lmb (bootm_headers_t *images) { }#endif
Signature · 1 line
1.7.9.1
PATCH 1/1 LMB: Fix undefined lmb_reserve() on non-lmb platforms
Dear Marek Vasut,
Quoted 15 lines
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Mike Frysinger <[email protected]>Cc Stephen Warren <[email protected]>Cc Tom Warren <[email protected]>Cc Graeme Russ <[email protected]>--- common/cmd_bootm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)common/cmd_bootm.c +0
-0
common/cmd_bootm.c static void boot_start_lmb(bootm_headers_t *images) · line 189
Quoted 4 lines
common/cmd_bootm.c +1
-0@@ -186,6 +186,7 @@ static void boot_start_lmb(bootm_headers_t *images) board_lmb_reserve(&images->lmb); }#else +#define lmb_reserve (lmb, base, size)
Though I have to admit, this is compiler-rape. It's again depending on the fact that preprocessor will remove this altogether and compiler then won't use any of the variables :-(
common/cmd_bootm.c static void boot_start_lmb(bootm_headers_t *images) · line 191
Quoted 2 lines
common/cmd_bootm.c +0
-0static inline void boot_start_lmb (bootm_headers_t *images) { }#endif
Best regards,
Marek Vasut
PATCH 1/1 LMB: Fix undefined lmb_reserve() on non-lmb platforms
In reply to Marek Vasut-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120401/447515c4/attachment.pgp>
Wolfgang Denk
AppliedPATCH 1/1 LMB: Fix undefined lmb_reserve() on non-lmb platforms
In reply to Marek VasutDear Marek Vasut,
Quoted 9 lines · In message <[email protected]> you wrote:
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Mike Frysinger <[email protected]>Cc Stephen Warren <[email protected]>Cc Tom Warren <[email protected]>Cc Graeme Russ <[email protected]>--- common/cmd_bootm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The human mind ordinarily operates at only ten percent of its capaci- ty - the rest is overhead for the operating system.