aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tee
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2022-05-30 14:44:25 +0200
committerArnd Bergmann <arnd@arndb.de>2022-05-30 14:44:27 +0200
commit9c76d723edd4f4d7d10b33e7e56f72ecbe6cee34 (patch)
tree8a027a7a613ee68f8c99e5615ecc79448996c33e /drivers/tee
parentARM: configs: Enable more audio support for i.MX (diff)
parenttee: optee: Pass a pointer to virt_addr_valid() (diff)
downloadlinux-dev-9c76d723edd4f4d7d10b33e7e56f72ecbe6cee34.tar.xz
linux-dev-9c76d723edd4f4d7d10b33e7e56f72ecbe6cee34.zip
Merge tag 'optee-warning-for-v5.19' of https://git.linaro.org/people/jens.wiklander/linux-tee into arm/late
Fix a compiler warning in OP-TEE driver * tag 'optee-warning-for-v5.19' of https://git.linaro.org/people/jens.wiklander/linux-tee: tee: optee: Pass a pointer to virt_addr_valid() Link: https://lore.kernel.org/r/20220530112612.GA1511426@jade Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/tee')
-rw-r--r--drivers/tee/optee/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/optee/call.c b/drivers/tee/optee/call.c
index 6554e06e053e..28f87cd8b3ed 100644
--- a/drivers/tee/optee/call.c
+++ b/drivers/tee/optee/call.c
@@ -512,7 +512,7 @@ int optee_check_mem_type(unsigned long start, size_t num_pages)
* Allow kernel address to register with OP-TEE as kernel
* pages are configured as normal memory only.
*/
- if (virt_addr_valid(start) || is_vmalloc_addr((void *)start))
+ if (virt_addr_valid((void *)start) || is_vmalloc_addr((void *)start))
return 0;
mmap_read_lock(mm);