[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <05d56f16-a4fd-10ca-22af-3bc1c6395335@nfschina.com>
Date: Thu, 29 Jun 2023 14:19:33 +0800
From: yunchuan <yunchuan@...china.com>
To: Dan Carpenter <dan.carpenter@...aro.org>,
"Russell King (Oracle)" <linux@...linux.org.uk>
Cc: iyappan@...amperecomputing.com, keyur@...amperecomputing.com,
quan@...amperecomputing.com, andrew@...n.ch, hkallweit1@...il.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net-next 08/10] net: mdio: Remove unnecessary (void*)
conversions
On 2023/6/29 13:50, Dan Carpenter wrote:
> On Thu, Jun 29, 2023 at 09:59:56AM +0800, yunchuan wrote:
>> On 2023/6/28 17:50, Russell King (Oracle) wrote:
>>> On Wed, Jun 28, 2023 at 10:45:17AM +0800, wuych wrote:
>>>> @@ -211,7 +211,7 @@ static void xgene_enet_wr_mdio_csr(void __iomem *base_addr,
>>>> static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id,
>>>> int reg, u16 data)
>>>> {
>>>> - void __iomem *addr = (void __iomem *)bus->priv;
>>>> + void __iomem *addr = bus->priv;
>>>> int timeout = 100;
>>>> u32 status, val;
>>>> @@ -234,7 +234,7 @@ static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id,
>>>> static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg)
>>>> {
>>>> - void __iomem *addr = (void __iomem *)bus->priv;
>>>> + void __iomem *addr = bus->priv;
>>>> u32 data, status, val;
>>>> int timeout = 100;
>>> These probably cause Sparse to warn whether or not the cast is there.
>> Hi, Russell King,
>>
>> I didn't notice this Sparse warning.
>> Should I remove this cast although it cause Sparse warning?
> No. Don't introduce new Sparse warnings.
Got it, thanks for your answer!
wuych
>
> regards,
> dan carpenter
>
Powered by blists - more mailing lists