]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common: fix inline--weak error spotted by gcc 4.4
authorKim Phillips <kim.phillips@freescale.com>
Tue, 19 May 2009 17:53:36 +0000 (12:53 -0500)
committerWolfgang Denk <wd@denx.de>
Wed, 20 May 2009 20:36:28 +0000 (22:36 +0200)
cmd_ide.c:547: error: inline function 'ide_inb' cannot be declared weak

removing the inline attribute fixes it.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
common/cmd_ide.c

index 782ad1c09422ee1f02aaeeb4d0304da1caa73718..d86bf370302bf7ad1a760ac2019b7e33fc99a21a 100644 (file)
@@ -532,7 +532,7 @@ __ide_outb(int dev, int port, unsigned char val)
                dev, port, val, (ATA_CURR_BASE(dev)+CONFIG_SYS_ATA_PORT_ADDR(port)));
        outb(val, (ATA_CURR_BASE(dev)+CONFIG_SYS_ATA_PORT_ADDR(port)));
 }
-void inline ide_outb (int dev, int port, unsigned char val)
+void ide_outb (int dev, int port, unsigned char val)
                __attribute__((weak, alias("__ide_outb")));
 
 unsigned char inline
@@ -544,7 +544,7 @@ __ide_inb(int dev, int port)
                dev, port, (ATA_CURR_BASE(dev)+CONFIG_SYS_ATA_PORT_ADDR(port)), val);
        return val;
 }
-unsigned char inline ide_inb(int dev, int port)
+unsigned char ide_inb(int dev, int port)
                        __attribute__((weak, alias("__ide_inb")));
 
 #ifdef CONFIG_TUNE_PIO