Re: [PATCH] HSI: cmt_speech: Pass a pointer to virt_to_page()

From: Linus Walleij
Date: Mon Aug 29 2022 - 09:19:08 EST


On Thu, May 19, 2022 at 11:31 PM Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:

> A pointer into virtual memory is represented by a (void *)
> not an u32, so the compiler warns:
>
> drivers/hsi/clients/cmt_speech.c:1092:35: warning: passing argument
> 1 of 'virt_to_pfn' makes pointer from integer without a cast
> [-Wint-conversion]
>
> Fix this with an explicit cast.
>
> Cc: Kai Vehmanen <kai.vehmanen@xxxxxxxxxxxxxxx>
> Cc: Aaro Koskinen <aaro.koskinen@xxxxxx>
> Cc: Pavel Machek <pavel@xxxxxx>
> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Sebastian can you apply this patch to the HSI tree please?

Yours,
Linus Walleij