From: Wolfgang Denk Date: Sat, 03 Oct 2009 23:57:23 +0200 Subject: [U-Boot] [PATCH] Don't inline weak symbols In-Reply-To: <20090805181400.GG11898@audi.shelbyville.oz> References: <20090805181400.GG11898@audi.shelbyville.oz> Message-ID: <20091003215723.21F76832E408@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Tom, In message <20090805181400.GG11898@audi.shelbyville.oz> Ron Lee wrote: > > GCC 4.4 complains about this now. > > Signed-off-by: Ron Lee > --- > lib_arm/board.c | 18 +++++++++--------- > 1 files changed, 9 insertions(+), 9 deletions(-) > > diff --git a/lib_arm/board.c b/lib_arm/board.c > index a44d308..02a55eb 100644 > --- a/lib_arm/board.c > +++ b/lib_arm/board.c > @@ -124,23 +124,23 @@ void *sbrk (ptrdiff_t increment) > * May be supplied by boards if desired > */ > void inline __coloured_LED_init (void) {} > -void inline coloured_LED_init (void) __attribute__((weak, alias("__coloured_LED_init"))); > +void coloured_LED_init (void) __attribute__((weak, alias("__coloured_LED_init"))); > void inline __red_LED_on (void) {} > -void inline red_LED_on (void) __attribute__((weak, alias("__red_LED_on"))); > +void red_LED_on (void) __attribute__((weak, alias("__red_LED_on"))); > void inline __red_LED_off(void) {} > -void inline red_LED_off(void) __attribute__((weak, alias("__red_LED_off"))); > +void red_LED_off(void) __attribute__((weak, alias("__red_LED_off"))); > void inline __green_LED_on(void) {} > -void inline green_LED_on(void) __attribute__((weak, alias("__green_LED_on"))); > +void green_LED_on(void) __attribute__((weak, alias("__green_LED_on"))); > void inline __green_LED_off(void) {} > -void inline green_LED_off(void)__attribute__((weak, alias("__green_LED_off"))); > +void green_LED_off(void) __attribute__((weak, alias("__green_LED_off"))); > void inline __yellow_LED_on(void) {} > -void inline yellow_LED_on(void)__attribute__((weak, alias("__yellow_LED_on"))); > +void yellow_LED_on(void) __attribute__((weak, alias("__yellow_LED_on"))); > void inline __yellow_LED_off(void) {} > -void inline yellow_LED_off(void)__attribute__((weak, alias("__yellow_LED_off"))); > +void yellow_LED_off(void) __attribute__((weak, alias("__yellow_LED_off"))); > void inline __blue_LED_on(void) {} > -void inline blue_LED_on(void)__attribute__((weak, alias("__blue_LED_on"))); > +void blue_LED_on(void) __attribute__((weak, alias("__blue_LED_on"))); > void inline __blue_LED_off(void) {} > -void inline blue_LED_off(void)__attribute__((weak, alias("__blue_LED_off"))); > +void blue_LED_off(void) __attribute__((weak, alias("__blue_LED_off"))); > > /************************************************************************ > * Init Utilities * > -- Do you have this patch on your list? Best regards, Wolfgang Denk -- 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 Humans do claim a great deal for that particular emotion (love). -- Spock, "The Lights of Zetar", stardate 5725.6