]> git.dujemihanovic.xyz Git - u-boot.git/commit
ata: ahci: fix ahci_link_up() type mismatch for LTO
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:21 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commit2361b5eb5c3e116519518848fe8db9aed4841f4a
tree1acaf3b184d45833368aca5eac2d102d3f2d124f
parent37de198fa25b4bd31c69d14bad4fa6904685836d
ata: ahci: fix ahci_link_up() type mismatch for LTO

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@nic.cz>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/ata/ahci.c