diff options
author | Thomas Hellström <[email protected]> | 2024-01-09 12:24:02 +0100 |
---|---|---|
committer | Thomas Hellström <[email protected]> | 2024-01-15 15:36:41 +0100 |
commit | 3ec276d06698189506f508f87c0f4f17c11e0251 (patch) | |
tree | 40b6831c658a0bd143776067b927cb4b1d68ec59 | |
parent | 457f4439833487acb18abdd55e95fbb17d43fdca (diff) |
drm/xe: Use __iomem for the regs pointer
The regs pointer points to IO memory. Annotate it properly and
fix the corresponding sparse warning.
Fixes: a4e2f3a299ea ("drm/xe: refactor xe_mmio_probe_tiles to support MMIO extension")
Cc: Koby Elbaz <[email protected]>
Cc: Ofir Bitton <[email protected]>
Cc: Moti Haimovski <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Lucas De Marchi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 9d03bf30e78673d827484bbc17a6fd8f5e43a039)
Signed-off-by: Thomas Hellström <[email protected]>
-rw-r--r-- | drivers/gpu/drm/xe/xe_mmio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_mmio.c b/drivers/gpu/drm/xe/xe_mmio.c index f660cfb79f50..c8c5d74b6e90 100644 --- a/drivers/gpu/drm/xe/xe_mmio.c +++ b/drivers/gpu/drm/xe/xe_mmio.c @@ -303,7 +303,7 @@ void xe_mmio_probe_tiles(struct xe_device *xe) u8 id, tile_count = xe->info.tile_count; struct xe_gt *gt = xe_root_mmio_gt(xe); struct xe_tile *tile; - void *regs; + void __iomem *regs; u32 mtcfg; if (tile_count == 1) |