summaryrefslogtreecommitdiff
path: root/common/cmd_ide.c
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2009-05-19 12:53:36 -0500
committerWolfgang Denk <wd@denx.de>2009-05-20 22:36:28 +0200
commit2df72b82bc9e17b88dc82735a067749220beb025 (patch)
treeda0b0633eacd7adcc016ccc636a2fcd6ad22f949 /common/cmd_ide.c
parent9fd9abedcc3c10cf89353265cbe05f58609d51f3 (diff)
downloadu-boot-imx-2df72b82bc9e17b88dc82735a067749220beb025.zip
u-boot-imx-2df72b82bc9e17b88dc82735a067749220beb025.tar.gz
u-boot-imx-2df72b82bc9e17b88dc82735a067749220beb025.tar.bz2
common: fix inline--weak error spotted by gcc 4.4
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>
Diffstat (limited to 'common/cmd_ide.c')
-rw-r--r--common/cmd_ide.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index 782ad1c..d86bf37 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -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