mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
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>
This commit is contained in:
parent
9fd9abedcc
commit
2df72b82bc
1 changed files with 2 additions and 2 deletions
|
@ -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)));
|
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)));
|
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")));
|
__attribute__((weak, alias("__ide_outb")));
|
||||||
|
|
||||||
unsigned char inline
|
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);
|
dev, port, (ATA_CURR_BASE(dev)+CONFIG_SYS_ATA_PORT_ADDR(port)), val);
|
||||||
return 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")));
|
__attribute__((weak, alias("__ide_inb")));
|
||||||
|
|
||||||
#ifdef CONFIG_TUNE_PIO
|
#ifdef CONFIG_TUNE_PIO
|
||||||
|
|
Loading…
Reference in a new issue