diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-04-03 17:54:01 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-04-03 17:54:01 +0200 |
commit | a3c40af4a7ea4fbeecca28a1d4dce6869a8d6995 (patch) | |
tree | a034a4ced688f39ff11cc8ce8ef97172cc7e6f89 /drivers/tee | |
parent | 0311454f4f2effef609499219a75c70ae21cccc5 (diff) | |
parent | 8671133082176d1388e20ac33d61cf7e3b05adf5 (diff) | |
download | lwn-a3c40af4a7ea4fbeecca28a1d4dce6869a8d6995.tar.gz lwn-a3c40af4a7ea4fbeecca28a1d4dce6869a8d6995.zip |
Merge tag 'tee-fix-for-v6.3' of https://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes
Add explicit cast to (void *) for virt_to_page() argument
* tag 'tee-fix-for-v6.3' of https://git.linaro.org/people/jens.wiklander/linux-tee:
tee: Pass a pointer to virt_to_page()
Link: https://lore.kernel.org/r/20230330124804.GA1943242@rayden
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/tee')
-rw-r--r-- | drivers/tee/tee_shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c index b1c6231defad..673cf0359494 100644 --- a/drivers/tee/tee_shm.c +++ b/drivers/tee/tee_shm.c @@ -32,7 +32,7 @@ static int shm_get_kernel_pages(unsigned long start, size_t page_count, is_kmap_addr((void *)start))) return -EINVAL; - page = virt_to_page(start); + page = virt_to_page((void *)start); for (n = 0; n < page_count; n++) { pages[n] = page + n; get_page(pages[n]); |