Bug 207445 - HELP: file_operations in include/linux/fs.h and proc_ops in include/linux/proc_fs.h
Summary: HELP: file_operations in include/linux/fs.h and proc_ops in include/linux/pro...
Status: RESOLVED WILL_NOT_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 high
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-26 21:49 UTC by ff11
Modified: 2020-04-28 01:08 UTC (History)
0 users

See Also:
Kernel Version: 5.6.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description ff11 2020-04-26 21:49:38 UTC
Hi! I'm try to update some code to kernel 5.6.x (5.6.7 now), but i got the error about proc_create using proc_ops now instead of file_operations, here:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/proc_fs.h?h=v5.6.7#n64
and after change the variable from file_operations to proc_ops, i'm get the error about register_chrdev using the file_operations, here:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/fs.h?h=v5.6.7#n2686

Then i ask for help in how to proceed in this case. And will the include/linux/fs.h implementation change from file_operations to proc_ops too?
Comment 1 ff11 2020-04-28 01:06:49 UTC
After reading about the change here: https://lore.kernel.org/linux-fsdevel/20191225172228.GA13378@avx2/
I can understand a little more the motivation of the change and what have changed.
Well, I don't like it, but I will just make some ungly patch for this thing.

Note You need to log in before you can comment on or make changes to this bug.