diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2023-06-06 13:40:55 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-06-19 10:02:51 +0300 |
commit | 73eb77e75a00a7eebf5e3ca9e87ee7f728012bed (patch) | |
tree | 24e1599c37232b13b989e6d64f5ebdaac448e295 /drivers/video | |
parent | d4313a68ec913f2705b337e2d332813a72cb2de9 (diff) | |
download | linux-73eb77e75a00a7eebf5e3ca9e87ee7f728012bed.tar.xz |
fbdev: hitfb: Fix integer-to-pointer cast
Fix the type casting from unsigned long to char __iomem *. Resolves
the following warning:
../drivers/video/fbdev/hitfb.c:411:27: warning: incorrect type in assignment (different address spaces)
../drivers/video/fbdev/hitfb.c:411:27: expected char [noderef] __iomem *screen_base
../drivers/video/fbdev/hitfb.c:411:27: got void *
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/hitfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/hitfb.c b/drivers/video/fbdev/hitfb.c index 91766992b438..ee7bf3c963b2 100644 --- a/drivers/video/fbdev/hitfb.c +++ b/drivers/video/fbdev/hitfb.c @@ -392,7 +392,7 @@ static int hitfb_probe(struct platform_device *dev) info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN | FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA; - info->screen_base = (void *)hitfb_fix.smem_start; + info->screen_base = (char __iomem *)(uintptr_t)hitfb_fix.smem_start; ret = fb_alloc_cmap(&info->cmap, 256, 0); if (unlikely(ret < 0)) |