aboutsummaryrefslogtreecommitdiffstats
path: root/nvdebug_entry.c
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2025-10-01 11:54:47 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2025-10-01 11:54:47 -0400
commitb4a937788cead345f8f00419bd250d1d92b0290f (patch)
tree231d2d817c89550f744ba1e993700566c1612557 /nvdebug_entry.c
parent217aaa952fb812bfdce62402cfab959910ea7265 (diff)
Fix build warnings and errors on Linux 6.14ecrts25-ae
- Remove repetitive declarations of two `bus_type` structs. - Fix mmu.c to use an always-64-bit member for `parent_addr`. - Remove call to `page_mapcount_reset()` that isn't needed. - Correct `nvdebug_pd_page` documentation. - Disable missing prototype and missing declaration warnings. - Fix an improper type, and a missing type conversion. Tested build on Linux 6.14.0 (x86_64), 5.4.0 (x86_64), and 4.9.337 (aarch64).
Diffstat (limited to 'nvdebug_entry.c')
-rw-r--r--nvdebug_entry.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/nvdebug_entry.c b/nvdebug_entry.c
index c0cfa63..8293fdc 100644
--- a/nvdebug_entry.c
+++ b/nvdebug_entry.c
@@ -48,8 +48,6 @@ extern struct file_operations copy_topology_file_ops;
48 48
49struct nvdebug_state g_nvdebug_state[NVDEBUG_MAX_DEVICES]; 49struct nvdebug_state g_nvdebug_state[NVDEBUG_MAX_DEVICES];
50unsigned int g_nvdebug_devices = 0; 50unsigned int g_nvdebug_devices = 0;
51// Bus types are global symbols in the kernel
52extern struct bus_type platform_bus_type;
53 51
54// Starting in Kernel 5.6, proc_ops is required instead of file_operations. 52// Starting in Kernel 5.6, proc_ops is required instead of file_operations.
55// As file_operations is larger than proc_ops, we can overwrite the memory 53// As file_operations is larger than proc_ops, we can overwrite the memory