public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] powerpc/mpc8xxx: Fix ddr build error
@ 2011-10-03 23:59 Becky Bruce
  2011-10-04  1:40 ` Tabi Timur-B04825
  2011-10-04 10:00 ` Marek Vasut
  0 siblings, 2 replies; 5+ messages in thread
From: Becky Bruce @ 2011-10-03 23:59 UTC (permalink / raw)
  To: u-boot

Commit ID 60ce53cf9f40

"GCC4.6: Convert various empty macros to inline functions"

changed the "debug" macro to an inline function.  This causes
the mpc8xxx ddr code to stop building because there is a debug()
statement that references symbols that only exist when DEBUG is
defined.  This patch makes those symbols unconditional.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
---
 arch/powerpc/cpu/mpc8xxx/ddr/main.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/main.c b/arch/powerpc/cpu/mpc8xxx/ddr/main.c
index 249fd7d..eb70535 100644
--- a/arch/powerpc/cpu/mpc8xxx/ddr/main.c
+++ b/arch/powerpc/cpu/mpc8xxx/ddr/main.c
@@ -132,7 +132,6 @@ void fsl_ddr_get_spd(generic_spd_eeprom_t *ctrl_dimms_spd,
  *				|  interleaving
  */
 
-#ifdef DEBUG
 const char *step_string_tbl[] = {
 	"STEP_GET_SPD",
 	"STEP_COMPUTE_DIMM_PARMS",
@@ -153,7 +152,6 @@ const char * step_to_string(unsigned int step) {
 
 	return step_string_tbl[s];
 }
-#endif
 
 int step_assign_addresses(fsl_ddr_info_t *pinfo,
 			  unsigned int dbw_cap_adj[],
-- 
1.5.6.5

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

end of thread, other threads:[~2011-10-04 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 23:59 [U-Boot] [PATCH] powerpc/mpc8xxx: Fix ddr build error Becky Bruce
2011-10-04  1:40 ` Tabi Timur-B04825
2011-10-04 15:53   ` Becky Bruce
2011-10-04 10:00 ` Marek Vasut
2011-10-04 15:53   ` Becky Bruce

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