[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191017.153150.1433354673381849692.davem@davemloft.net>
Date: Thu, 17 Oct 2019 15:31:50 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ben.dooks@...ethink.co.uk
Cc: linux-kernel@...ts.codethink.co.uk, peppe.cavallaro@...com,
alexandre.torgue@...com, joabreu@...opsys.com,
mcoquelin.stm32@...il.com, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: stmmac: fix argument to stmmac_pcs_ctrl_ane()
From: "Ben Dooks (Codethink)" <ben.dooks@...ethink.co.uk>
Date: Wed, 16 Oct 2019 09:22:05 +0100
> The stmmac_pcs_ctrl_ane() expects a register address as
> argument 1, but for some reason the mac_device_info is
> being passed.
>
> Fix the warning (and possible bug) from sparse:
>
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2613:17: warning: incorrect type in argument 1 (different address spaces)
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2613:17: expected void [noderef] <asn:2> *ioaddr
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2613:17: got struct mac_device_info *hw
>
> Signed-off-by: Ben Dooks <ben.dooks@...ethink.co.uk>
Applied, thanks.
Powered by blists - more mailing lists