aboutsummaryrefslogtreecommitdiffstats
path: root/nvdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'nvdebug.h')
-rw-r--r--nvdebug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvdebug.h b/nvdebug.h
index 968a60b..8009b84 100644
--- a/nvdebug.h
+++ b/nvdebug.h
@@ -951,7 +951,7 @@ static inline int file2parentgpuidx(const struct file *f) {
951// was upgraded from Linux 4.9 to 5.10 (r32 -> r34+) 951// was upgraded from Linux 4.9 to 5.10 (r32 -> r34+)
952// Note that this is wrong if nvgpu was built without CONFIG_NVGPU_NON_FUSA 952// Note that this is wrong if nvgpu was built without CONFIG_NVGPU_NON_FUSA
953// i.e. if FUSA was enabled, this is wrong. 953// i.e. if FUSA was enabled, this is wrong.
954#define gk20a_regs(gk20a) ((void*)gk20a + sizeof(void(*)(void))) 954#define gk20a_regs(gk20a) (*(void**)((void*)gk20a + sizeof(void(*)(void))))
955#else 955#else
956#include <os/linux/os_linux.h> // For struct nvgpu_os_linux, which holds regs 956#include <os/linux/os_linux.h> // For struct nvgpu_os_linux, which holds regs
957#define gk20a_regs(gk20a) (container_of(gk20a, struct nvgpu_os_linux, g)->regs) 957#define gk20a_regs(gk20a) (container_of(gk20a, struct nvgpu_os_linux, g)->regs)