diff options
author | Joshua Bakita <jbakita@cs.unc.edu> | 2024-04-11 13:42:54 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2024-04-11 13:42:54 -0400 |
commit | 7cfa24cebeaf144b446d07e15fb25e78bb14841e (patch) | |
tree | 639db3695c54a1e50b3f10e1abb2bfaf5b8dd906 /copy_topology_procfs.c | |
parent | a8fd5a8dee066d0008e7667b0c9e6a60cd5f3a2e (diff) |
Linux 5.17+ support and allow including nvdebug.h independently
- Move Linux-specific functions to nvdebug_linux.h and .c
- Workaround PDE_DATA() being pde_data() on Linux 5.17+
Diffstat (limited to 'copy_topology_procfs.c')
-rw-r--r-- | copy_topology_procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/copy_topology_procfs.c b/copy_topology_procfs.c index cfedce7..a1aa0ad 100644 --- a/copy_topology_procfs.c +++ b/copy_topology_procfs.c | |||
@@ -1,6 +1,6 @@ | |||
1 | // Copyright 2024 Joshua Bakita | 1 | // Copyright 2024 Joshua Bakita |
2 | 2 | ||
3 | #include "nvdebug.h" | 3 | #include "nvdebug_linux.h" |
4 | 4 | ||
5 | // Maximum number of LCEs that we will print | 5 | // Maximum number of LCEs that we will print |
6 | #define MAX_LCES 32 | 6 | #define MAX_LCES 32 |