提交 e8bb990f 编写于 作者: M Marek Behún 提交者: Tom Rini

ARM: imx8m: fix imx_eqos_txclk_set_rate() type mismatch for LTO

When building imx8mp_evk_defconfig with LTO, the compiler complains
about type mismatch of function imx_eqos_txclk_set_rate() in file
  drivers/net/dwc_eth_qos.c:845:12
which contains a weak definition of this function, vs file
  arch/arm/mach-imx/imx8m/clock_imx8mm.c
which contains an implementation.

Change the type of this function in the implementation to fix this.
Signed-off-by: NMarek Behún <marek.behun@nic.cz>
Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
上级 3cd7541f
......@@ -846,7 +846,7 @@ int set_clk_eqos(enum enet_freq type)
return 0;
}
int imx_eqos_txclk_set_rate(u32 rate)
int imx_eqos_txclk_set_rate(ulong rate)
{
u32 val;
u32 eqos_post_div;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册