12 lines
421 B
Diff
12 lines
421 B
Diff
--- a/kernel-open/nvidia/nv-vtophys.c.orig 2024-09-19 14:13:38.129627845 +0200
|
|
+++ a/kernel-open/nvidia/nv-vtophys.c 2024-09-19 14:14:35.462847222 +0200
|
|
@@ -29,7 +29,7 @@
|
|
NvU64 NV_API_CALL nv_get_kern_phys_address(NvU64 address)
|
|
{
|
|
/* direct-mapped kernel address */
|
|
- if (virt_addr_valid(address))
|
|
+ if (virt_addr_valid((const void *) address))
|
|
return __pa(address);
|
|
|
|
nv_printf(NV_DBG_ERRORS,
|