mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user