Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

tonycurtis
Copy link
Contributor

Kernel interface changed file_ops to proc_ops

.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,
Copy link
Collaborator

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,
Copy link
Collaborator

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,
};
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants