Re: [net-next PATCH v3 2/2] octeontx2-af: fix compiler warnings flagged by Sparse
From: Andrew Lunn
Date: Tue Mar 11 2025 - 17:32:29 EST
On Tue, Mar 11, 2025 at 11:56:31PM +0530, Sai Krishna wrote:
> Sparse flagged a number of warnings while typecasting iomem
> type to required data type.
> For example, fwdata is just a shared memory data structure used
> between firmware and kernel, thus remapping and typecasting
> to required data type may not cause issue.
This is generally wrong. __iomem is there for a reason. If you are
removing it, it suggests what you do next with the pointer is wrong.
Andrew
---
pw-bot: cr