]> git.baikalelectronics.ru Git - kernel.git/commit
HSI: cmt_speech: Pass a pointer to virt_to_page()
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 19 May 2022 21:29:43 +0000 (23:29 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 29 Aug 2022 16:08:48 +0000 (18:08 +0200)
commit442439b0f29c00d4d15708b8d2cd621da6182286
tree8e2c5603a1ee2e4346ac1159f12bd82acfdb4803
parentd2395677ae7a7556e8df0f448927a1e9d36e9273
HSI: cmt_speech: Pass a pointer to virt_to_page()

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@linux.intel.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/hsi/clients/cmt_speech.c