-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to proc/file ops to handle kernel 5.6 series #33
base: master
Are you sure you want to change the base?
Conversation
kernel/xpmem_misc.c
Outdated
.read = seq_read, | ||
.write = xpmem_debug_printk_procfs_write, | ||
.llseek = seq_lseek, | ||
.open = xpmem_debug_printk_procfs_open, | ||
.open = xpmem_debug_printk_procfs_open, | ||
.release = single_release, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .open member appears to be set twice here.
struct file_operations xpmem_debug_printk_procfs_ops = { | ||
struct file_operations xpmem_debug_printk_procfs_ops = { | ||
.owner = THIS_MODULE, | ||
.owner = THIS_MODULE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
owner set twice?
.open = xpmem_unpin_procfs_open, | ||
.release = single_release, | ||
.release = single_release, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a merge issue. I don't think this will compile with 5.5.x and older.
Fix typos in procfs_ops
…> lock, and declaration of "flush_tlb_mm_range" (need to investigate that one when 5.8 stabilizes).
Kernel interface changed file_ops to proc_ops