[PATCH u-boot v4 32/36] ata: ahci: fix ahci_link_up() type mismatch for LTO
Tom Rini
trini at konsulko.com
Tue May 25 02:57:17 CEST 2021
On Thu, May 20, 2021 at 01:24:21PM +0200, Marek Behún 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>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210524/7efe35bb/attachment.sig>
More information about the U-Boot
mailing list