Commit 75dda3f0 authored by Stanislav Kinsburskii's avatar Stanislav Kinsburskii Committed by Helge Deller

fbdev: fsl-diu-fb: Fix sparse warning due to virt_to_phys() prototype change

Explicitly cast __iomem pointer to const void* with __force to fix the
following warning:

   incorrect type in argument 1 (different address spaces)
      expected void const volatile *address
      got char [noderef] __iomem *screen_base
Signed-off-by: default avatarStanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311161120.BgyxTBMQ-lkp@intel.com/Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent d6dfcdaa
...@@ -877,7 +877,7 @@ static int map_video_memory(struct fb_info *info) ...@@ -877,7 +877,7 @@ static int map_video_memory(struct fb_info *info)
} }
mutex_lock(&info->mm_lock); mutex_lock(&info->mm_lock);
info->screen_base = p; info->screen_base = p;
info->fix.smem_start = virt_to_phys(info->screen_base); info->fix.smem_start = virt_to_phys((__force const void *)info->screen_base);
info->fix.smem_len = smem_len; info->fix.smem_len = smem_len;
mutex_unlock(&info->mm_lock); mutex_unlock(&info->mm_lock);
info->screen_size = info->fix.smem_len; info->screen_size = info->fix.smem_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment