mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
common: cmd_ide: use __weak and add prototypes
clang chokes about the concept of having an alias to an always_inlined function. gcc likely just ignores the always inlined since binary sizes are equal before and after this patch. Convert the aliases to weak functions and provide missing prototypes. cc: Pavel Herrmann <morpheus.ibis@gmail.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
@@ -66,12 +66,16 @@ void ide_write_data(int dev, const ulong *sect_buf, int words);
|
||||
/*
|
||||
* I/O function overrides
|
||||
*/
|
||||
unsigned char ide_inb(int dev, int port);
|
||||
void ide_outb(int dev, int port, unsigned char val);
|
||||
void ide_input_swap_data(int dev, ulong *sect_buf, int words);
|
||||
void ide_input_data(int dev, ulong *sect_buf, int words);
|
||||
void ide_output_data(int dev, const ulong *sect_buf, int words);
|
||||
void ide_input_data_shorts(int dev, ushort *sect_buf, int shorts);
|
||||
void ide_output_data_shorts(int dev, ushort *sect_buf, int shorts);
|
||||
|
||||
void ide_led(uchar led, uchar status);
|
||||
|
||||
/**
|
||||
* board_start_ide() - Start up the board IDE interfac
|
||||
*
|
||||
|
Reference in New Issue
Block a user