Commit a3c40af4 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'tee-fix-for-v6.3' of...

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@raydenSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 0311454f 86711330
...@@ -32,7 +32,7 @@ static int shm_get_kernel_pages(unsigned long start, size_t page_count, ...@@ -32,7 +32,7 @@ static int shm_get_kernel_pages(unsigned long start, size_t page_count,
is_kmap_addr((void *)start))) is_kmap_addr((void *)start)))
return -EINVAL; return -EINVAL;
page = virt_to_page(start); page = virt_to_page((void *)start);
for (n = 0; n < page_count; n++) { for (n = 0; n < page_count; n++) {
pages[n] = page + n; pages[n] = page + n;
get_page(pages[n]); get_page(pages[n]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment