diff options
author | Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> | 2023-11-20 16:01:33 -0800 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-11 17:09:01 +0100 |
commit | 75dda3f04ae7725b028b7267e49cd0b7b98ffe19 (patch) | |
tree | 9a1247abe7b37e8a150f6be40e64f46f62711daa | |
parent | d6dfcdaa4e6e1a7fa99dc068f47f6b7b8c5bb634 (diff) | |
download | linux-75dda3f04ae7725b028b7267e49cd0b7b98ffe19.tar.gz linux-75dda3f04ae7725b028b7267e49cd0b7b98ffe19.tar.bz2 linux-75dda3f04ae7725b028b7267e49cd0b7b98ffe19.zip |
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: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311161120.BgyxTBMQ-lkp@intel.com/
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | drivers/video/fbdev/fsl-diu-fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index 0bced82fa494..0191141657fd 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -877,7 +877,7 @@ static int map_video_memory(struct fb_info *info) } mutex_lock(&info->mm_lock); 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; mutex_unlock(&info->mm_lock); info->screen_size = info->fix.smem_len; |