Skip to content

Commit

Permalink
Merge tag 'optee-warning-for-v5.19' of https://git.linaro.org/people/…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
arndb committed May 30, 2022
2 parents 212e3b6 + a3b9ecc commit 9c76d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tee/optee/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9c76d72

Please sign in to comment.