]> git.dujemihanovic.xyz Git - linux.git/commit
fbdev: fsl-diu-fb: Fix sparse warning due to virt_to_phys() prototype change
authorStanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Tue, 21 Nov 2023 00:01:33 +0000 (16:01 -0800)
committerHelge Deller <deller@gmx.de>
Thu, 11 Jan 2024 16:09:01 +0000 (17:09 +0100)
commit75dda3f04ae7725b028b7267e49cd0b7b98ffe19
tree9a1247abe7b37e8a150f6be40e64f46f62711daa
parentd6dfcdaa4e6e1a7fa99dc068f47f6b7b8c5bb634
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>
drivers/video/fbdev/fsl-diu-fb.c