Skip to contentSkip to conversation

LMB: Fix undefined lmb_reserve() on non-lmb platforms

PATCH New Marek Vasut 3 participants 4 messages Apr 1, 2012 – Apr 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LMB: Fix undefined lmb_reserve() on non-lmb platforms

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 +1 -0
index 9ad2535..5685232 100644
@@ -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
#1 lore raw

PATCH 1/1 LMB: Fix undefined lmb_reserve() on non-lmb platforms

Dear Marek Vasut,

Quoted 15 lines
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
index 9ad2535..5685232 100644

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 -0
 static inline void boot_start_lmb(bootm_headers_t *images) { }
 #endif

Best regards,
Marek Vasut

#3 lore raw

PATCH 1/1 LMB: Fix undefined lmb_reserve() on non-lmb platforms

In reply to Marek Vasut

Dear Marek Vasut,

Quoted 9 lines · In message <[email protected]> you wrote:
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.