Skip to content
Commit a3b9ecc8 authored by Linus Walleij's avatar Linus Walleij Committed by Jens Wiklander
Browse files

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarSumit Garg <sumit.garg@linaro.org>
[jw: fixed merge conflict]
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent 3e47235e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment