proc: convert everything to "struct proc_ops"
The most notable change is DEFINE_SHOW_ATTRIBUTE macro split in seq_file.h. Conversion rule is: llseek => proc_lseek unlocked_ioctl => proc_ioctl xxx => proc_xxx delete ".owner = THIS_MODULE" line [akpm@linux-foundation.org: fix drivers/isdn/capi/kcapi_proc.c] [sfr@canb.auug.org.au: fix kernel/sched/psi.c] Link: http://lkml.kernel.org/r/20200122180545.36222f50@canb.auug.org.au Link: http://lkml.kernel.org/r/20191225172546.GB13378@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
d56c0d45f0
commit
97a32539b9
@@ -4420,73 +4420,65 @@ static int proc_BSSList_open( struct inode *inode, struct file *file );
|
||||
static int proc_config_open( struct inode *inode, struct file *file );
|
||||
static int proc_wepkey_open( struct inode *inode, struct file *file );
|
||||
|
||||
static const struct file_operations proc_statsdelta_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_read,
|
||||
.open = proc_statsdelta_open,
|
||||
.release = proc_close,
|
||||
.llseek = default_llseek,
|
||||
static const struct proc_ops proc_statsdelta_ops = {
|
||||
.proc_read = proc_read,
|
||||
.proc_open = proc_statsdelta_open,
|
||||
.proc_release = proc_close,
|
||||
.proc_lseek = default_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations proc_stats_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_read,
|
||||
.open = proc_stats_open,
|
||||
.release = proc_close,
|
||||
.llseek = default_llseek,
|
||||
static const struct proc_ops proc_stats_ops = {
|
||||
.proc_read = proc_read,
|
||||
.proc_open = proc_stats_open,
|
||||
.proc_release = proc_close,
|
||||
.proc_lseek = default_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations proc_status_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_read,
|
||||
.open = proc_status_open,
|
||||
.release = proc_close,
|
||||
.llseek = default_llseek,
|
||||
static const struct proc_ops proc_status_ops = {
|
||||
.proc_read = proc_read,
|
||||
.proc_open = proc_status_open,
|
||||
.proc_release = proc_close,
|
||||
.proc_lseek = default_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations proc_SSID_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_read,
|
||||
.write = proc_write,
|
||||
.open = proc_SSID_open,
|
||||
.release = proc_close,
|
||||
.llseek = default_llseek,
|
||||
static const struct proc_ops proc_SSID_ops = {
|
||||
.proc_read = proc_read,
|
||||
.proc_write = proc_write,
|
||||
.proc_open = proc_SSID_open,
|
||||
.proc_release = proc_close,
|
||||
.proc_lseek = default_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations proc_BSSList_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_read,
|
||||
.write = proc_write,
|
||||
.open = proc_BSSList_open,
|
||||
.release = proc_close,
|
||||
.llseek = default_llseek,
|
||||
static const struct proc_ops proc_BSSList_ops = {
|
||||
.proc_read = proc_read,
|
||||
.proc_write = proc_write,
|
||||
.proc_open = proc_BSSList_open,
|
||||
.proc_release = proc_close,
|
||||
.proc_lseek = default_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations proc_APList_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_read,
|
||||
.write = proc_write,
|
||||
.open = proc_APList_open,
|
||||
.release = proc_close,
|
||||
.llseek = default_llseek,
|
||||
static const struct proc_ops proc_APList_ops = {
|
||||
.proc_read = proc_read,
|
||||
.proc_write = proc_write,
|
||||
.proc_open = proc_APList_open,
|
||||
.proc_release = proc_close,
|
||||
.proc_lseek = default_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations proc_config_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_read,
|
||||
.write = proc_write,
|
||||
.open = proc_config_open,
|
||||
.release = proc_close,
|
||||
.llseek = default_llseek,
|
||||
static const struct proc_ops proc_config_ops = {
|
||||
.proc_read = proc_read,
|
||||
.proc_write = proc_write,
|
||||
.proc_open = proc_config_open,
|
||||
.proc_release = proc_close,
|
||||
.proc_lseek = default_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations proc_wepkey_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_read,
|
||||
.write = proc_write,
|
||||
.open = proc_wepkey_open,
|
||||
.release = proc_close,
|
||||
.llseek = default_llseek,
|
||||
static const struct proc_ops proc_wepkey_ops = {
|
||||
.proc_read = proc_read,
|
||||
.proc_write = proc_write,
|
||||
.proc_open = proc_wepkey_open,
|
||||
.proc_release = proc_close,
|
||||
.proc_lseek = default_llseek,
|
||||
};
|
||||
|
||||
static struct proc_dir_entry *airo_entry;
|
||||
|
Reference in New Issue
Block a user