aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Behún <marek.behun@nic.cz>2021-05-20 13:24:15 +0200
committerTom Rini <trini@konsulko.com>2021-05-24 14:21:30 -0400
commit3cd7541f932164db34c82748dc5ead4020a0eb2e (patch)
tree42cca72c163f177b707a1a8c135c51ba4ff40a86
parent9493e96e54eafa67df9b4f26e4cca4b68d167dbb (diff)
downloadu-boot-3cd7541f932164db34c82748dc5ead4020a0eb2e.zip
u-boot-3cd7541f932164db34c82748dc5ead4020a0eb2e.tar.gz
u-boot-3cd7541f932164db34c82748dc5ead4020a0eb2e.tar.bz2
ARM: kona: fix clk_bsc_enable() type mismatch for LTO
When building with LTO, the compiler complains about type mismatch of function clk_bsc_enable() in file: arch/arm/cpu/armv7/kona-common/clk-stubs.c vs other files that define or use this function: warning: type of ‘clk_bsc_enable’ does not match original declaration. Change the type of this function to that of the other usages. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--arch/arm/cpu/armv7/kona-common/clk-stubs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/kona-common/clk-stubs.c b/arch/arm/cpu/armv7/kona-common/clk-stubs.c
index 2dfa3f7..4eddaca 100644
--- a/arch/arm/cpu/armv7/kona-common/clk-stubs.c
+++ b/arch/arm/cpu/armv7/kona-common/clk-stubs.c
@@ -14,7 +14,7 @@ int __weak clk_sdio_enable(void *base, u32 rate, u32 *actual_ratep)
return 0;
}
-int __weak clk_bsc_enable(void *base, u32 rate, u32 *actual_ratep)
+int __weak clk_bsc_enable(void *base)
{
return 0;
}