Skip to contentSkip to conversation

Remove inline qualifier from show_boot_progress()

PATCH New Emil Medve 2 participants 2 messages May 12, 2009 – May 15, 2009

lore
Share & tools
lore

Emil Medve

author
#0 lore raw

PATCH 1/1 Remove inline qualifier from show_boot_progress()

The 'inline' is conflicting with the semantic of 'weak' attribute and with the way the show_boot_progress() function is used.

Also gcc 4.4 is complaining about it:

main.c:51: error: inline function 'show_boot_progress' cannot be declared weak

---
 common/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common/main.c +1 -1
index 905d40f..026edd1 100644
@@ -48,7 +48,7 @@ DECLARE_GLOBAL_DATA_PTR;
  * Board-specific Platform code can reimplement show_boot_progress () if needed
  */
 void inline __show_boot_progress (int val) {}
-void inline show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
+void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
 
 #if defined(CONFIG_BOOT_RETRY_TIME) && defined(CONFIG_RESET_TO_RETRY)
 extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);		/* for do_reset() prototype */
Signature · 1 line
1.6.3
#1 lore raw

PATCH 1/1 Remove inline qualifier from show_boot_progress()

Dear Emil Medve,

Quoted 11 lines · In message <[email protected]> you…

The 'inline' is conflicting with the semantic of 'weak' attribute and with the way the show_boot_progress() function is used.

Also gcc 4.4 is complaining about it:

main.c:51: error: inline function 'show_boot_progress' cannot be declared weak

---
 common/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 7 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
PROGRAM - n.  A magic spell cast over a computer  allowing it to turn
one's input into error messages.
v. tr. - To engage in a pastime similar to banging one's head against
a wall, but with fewer opportunities for reward.