From: Helge Deller <deller@gmx.de>
To: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>,
timur@kernel.org, linux-fbdev@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] fbdev/fsl-diu-fb: Fix srapse warning due to virt_to_phys() prototype change
Date: Sat, 25 Nov 2023 09:57:46 +0100 [thread overview]
Message-ID: <8dfad83f-20b1-49c9-bab8-ff5259ab85d0@gmx.de> (raw)
In-Reply-To: <170052488691.21532.13211751644917367476.stgit@skinsburskii.>
On 11/21/23 01:01, Stanislav Kinsburskii wrote:
> 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/
> ---
> drivers/video/fbdev/fsl-diu-fb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c
> index 7fbd9f069ac2..b0fda5bd1964 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;
applied to fbdev git tree (with some typos corrected).
Helge
parent reply other threads:[~2023-11-25 9:10 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <170052488691.21532.13211751644917367476.stgit@skinsburskii.>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8dfad83f-20b1-49c9-bab8-ff5259ab85d0@gmx.de \
--to=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=skinsburskii@linux.microsoft.com \
--cc=timur@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®