aboutsummaryrefslogtreecommitdiffstats
path: root/nvdebug_entry.c
diff options
context:
space:
mode:
authorBenjamin Hadad IV <bh4@unc.edu>2023-07-10 12:39:12 -0400
committerBenjamin Hadad IV <bh4@unc.edu>2023-07-10 12:39:12 -0400
commit068e7f4e7208d6c9250ad72208e0b36fd9fdf2f6 (patch)
tree89ae37b29c464b532b02056ae4170612cd4eaaa3 /nvdebug_entry.c
parent3725b15d5da3e06ef202045d710aa5f15eb72fcc (diff)
parent073e8978334a07e0053ee08310743ddf3046d7d2 (diff)
Merge branch 'jbakita-wip' of ssh://rtsrv.cs.unc.edu/public/nvdebug into wip
I am merging Mr. Bakita's changes (046d7d2) into this repository.
Diffstat (limited to 'nvdebug_entry.c')
-rw-r--r--nvdebug_entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvdebug_entry.c b/nvdebug_entry.c
index 60fb7af..8e8266c 100644
--- a/nvdebug_entry.c
+++ b/nvdebug_entry.c
@@ -35,7 +35,7 @@ unsigned int g_nvdebug_devices = 0;
35#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 35#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
36// This rewrites the struct to the proc_ops layout on newer kernels 36// This rewrites the struct to the proc_ops layout on newer kernels
37const struct proc_ops* compat_ops(const struct file_operations* ops) { 37const struct proc_ops* compat_ops(const struct file_operations* ops) {
38 struct proc_ops new_ops; 38 struct proc_ops new_ops = {};
39 new_ops.proc_open = ops->open; 39 new_ops.proc_open = ops->open;
40 new_ops.proc_read = ops->read; 40 new_ops.proc_read = ops->read;
41 new_ops.proc_write = ops->write; 41 new_ops.proc_write = ops->write;