]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Remove inline qualifier from show_boot_progress()
authorEmil Medve <Emilian.Medve@Freescale.com>
Tue, 12 May 2009 18:48:32 +0000 (13:48 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 15 May 2009 20:04:04 +0000 (22:04 +0200)
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

Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
common/main.c

index 905d40f0e0961ad6b3f2f5140979dfaf5fe163ba..026edd1db23a19de127fd4b29ec9e69e43f87c99 100644 (file)
@@ -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 */