[PATCH u-boot 35/39] ata: ahci: fix ahci_link_up() type mismatch for LTO
Bin Meng
bmeng.cn at gmail.com
Wed Mar 10 06:23:24 CET 2021
On Sun, Mar 7, 2021 at 12:26 PM Marek Behún <marek.behun at nic.cz> wrote:
>
> When building highbank_defconfig with LTO, the compiler complains about
> type mismatch of function ahci_link_up().
>
> The third parameter of this function is of type u8 in
> drivers/ata/ahci.c, but of type int in board/highbank/ahci.c.
>
> There is no reason in using u8, and the code using this function
> actually passes an int variable into the function (so it is implicitly
> converted to u8).
>
> Change the type of this parameter to int in drivers/ata/ahci.c.
>
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
> ---
> drivers/ata/ahci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list