diff options
| author | Jani Nikula <[email protected]> | 2023-02-07 14:40:24 +0200 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2023-02-08 12:45:46 +0200 |
| commit | 70994becf2d0899dc9f8c23154af6aad34b0981d (patch) | |
| tree | 68f660f25cdf705b296327b1f5679518129ad060 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | ac7215c423a34837b634c90cf29681537bd9998c (diff) | |
drm/i915/uncore: cast iomem to avoid sparse warning
drmm_add_action_or_reset() is unaware of __iomem and the pointer needs
to be a plain void *. Cast __iomem away and back while the pointer goes
through drmm.
drivers/gpu/drm/i915/intel_uncore.c:2463:17: warning: incorrect type in argument 1 (different address spaces)
drivers/gpu/drm/i915/intel_uncore.c:2463:17: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/i915/intel_uncore.c:2463:17: got void *regs
drivers/gpu/drm/i915/intel_uncore.c:2494:16: warning: incorrect type in argument 3 (different address spaces)
drivers/gpu/drm/i915/intel_uncore.c:2494:16: expected void *data
drivers/gpu/drm/i915/intel_uncore.c:2494:16: got void [noderef] __iomem *regs
Cc: Matt Roper <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions