]> git.baikalelectronics.ru Git - kernel.git/commit
tee: optee: Pass a pointer to virt_addr_valid()
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 19 May 2022 21:46:35 +0000 (23:46 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Mon, 30 May 2022 06:06:45 +0000 (08:06 +0200)
commit500c1228b577cab2b456ee631b8ed237882534a3
tree4aeef70cdb798d2d45e6e51b5a98eb0ce96c96f3
parent6dc2d610fba999d8b6a8f98fdbae3340c1500dd4
tee: optee: Pass a pointer to virt_addr_valid()

A pointer into virtual memory is represented by a (void *)
not an u32, so the compiler warns:

drivers/tee/optee/call.c:365:29: warning: passing argument 1
  of 'virt_to_pfn' makes pointer from integer without a
  cast [-Wint-conversion]

Fix this with an explicit cast.

Cc: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
[jw: fixed merge conflict]
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/call.c