mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
__iomem annotated memory must be accessed via dedicated accessors, even if actual code is correct (accessing the driver data in mmp3_hsic_phy_init() brings back the __iomem cast), but dropping its cast (with or without __force) when storing as driver data seems like less readable code for any future changes. Instead, add a dedicated wrapping structure just to hold the pointer without changing the __iomem cast. This makes the code explicit, obvious and solves the sparse warning: phy-mmp3-hsic.c:58:31: warning: cast removes address space '__iomem' of expression Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260216110413.159994-5-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Vinod Koul <vkoul@kernel.org> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| phy-armada38x-comphy.c | ||
| phy-armada375-usb2.c | ||
| phy-berlin-sata.c | ||
| phy-berlin-usb.c | ||
| phy-mmp3-hsic.c | ||
| phy-mmp3-usb.c | ||
| phy-mvebu-a3700-comphy.c | ||
| phy-mvebu-a3700-utmi.c | ||
| phy-mvebu-cp110-comphy.c | ||
| phy-mvebu-cp110-utmi.c | ||
| phy-mvebu-sata.c | ||
| phy-pxa-28nm-hsic.c | ||
| phy-pxa-28nm-usb2.c | ||
| phy-pxa-usb.c | ||