From: Marek Vasut Date: Tue, 04 Oct 2011 12:00:13 +0200 Subject: [U-Boot] [PATCH] powerpc/mpc8xxx: Fix ddr build error In-Reply-To: <1317686348215-git-send-email-beckyb@kernel.crashing.org> References: <1317686348215-git-send-email-beckyb@kernel.crashing.org> Message-ID: <1317722413.10961.2.camel@konomi> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 NAK. This approach increases code size. The patch you mentioned is going to be reverted until fixed. Better fix is welcome though! Cheers > --- >? 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 > >