Skip to content

Commit 3ec276d

Browse files
author
Thomas Hellström
committed
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: a4e2f3a ("drm/xe: refactor xe_mmio_probe_tiles to support MMIO extension") Cc: Koby Elbaz <kelbaz@habana.ai> Cc: Ofir Bitton <obitton@habana.ai> Cc: Moti Haimovski <mhaimovski@habana.ai> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240109112405.108136-2-thomas.hellstrom@linux.intel.com (cherry picked from commit 9d03bf3) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 457f443 commit 3ec276d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_mmio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ void xe_mmio_probe_tiles(struct xe_device *xe)
303303
u8 id, tile_count = xe->info.tile_count;
304304
struct xe_gt *gt = xe_root_mmio_gt(xe);
305305
struct xe_tile *tile;
306-
void *regs;
306+
void __iomem *regs;
307307
u32 mtcfg;
308308

309309
if (tile_count == 1)

0 commit comments

Comments
 (0)