Bug 207445

Summary: HELP: file_operations in include/linux/fs.h and proc_ops in include/linux/proc_fs.h
Product: File System Reporter: ff11 (ferion11)
Component: OtherAssignee: fs_other
Status: RESOLVED WILL_NOT_FIX    
Severity: high    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.6.7 Subsystem:
Regression: No Bisected commit-id:

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.