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
@@ -126,7 +126,7 @@ static void prism2_check_sta_fw_version(local_info_t *local);
|
||||
|
||||
#ifdef PRISM2_DOWNLOAD_SUPPORT
|
||||
/* hostap_download.c */
|
||||
static const struct file_operations prism2_download_aux_dump_proc_fops;
|
||||
static const struct proc_ops prism2_download_aux_dump_proc_ops;
|
||||
static u8 * prism2_read_pda(struct net_device *dev);
|
||||
static int prism2_download(local_info_t *local,
|
||||
struct prism2_download_param *param);
|
||||
@@ -3094,7 +3094,7 @@ prism2_init_local_data(struct prism2_helper_functions *funcs, int card_idx,
|
||||
local->func->reset_port = prism2_reset_port;
|
||||
local->func->schedule_reset = prism2_schedule_reset;
|
||||
#ifdef PRISM2_DOWNLOAD_SUPPORT
|
||||
local->func->read_aux_fops = &prism2_download_aux_dump_proc_fops;
|
||||
local->func->read_aux_proc_ops = &prism2_download_aux_dump_proc_ops;
|
||||
local->func->download = prism2_download;
|
||||
#endif /* PRISM2_DOWNLOAD_SUPPORT */
|
||||
local->func->tx = prism2_tx_80211;
|
||||
|
@@ -211,9 +211,9 @@ static ssize_t prism2_pda_proc_read(struct file *file, char __user *buf,
|
||||
return count;
|
||||
}
|
||||
|
||||
static const struct file_operations prism2_pda_proc_fops = {
|
||||
.read = prism2_pda_proc_read,
|
||||
.llseek = generic_file_llseek,
|
||||
static const struct proc_ops prism2_pda_proc_ops = {
|
||||
.proc_read = prism2_pda_proc_read,
|
||||
.proc_lseek = generic_file_llseek,
|
||||
};
|
||||
|
||||
|
||||
@@ -223,8 +223,8 @@ static ssize_t prism2_aux_dump_proc_no_read(struct file *file, char __user *buf,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct file_operations prism2_aux_dump_proc_fops = {
|
||||
.read = prism2_aux_dump_proc_no_read,
|
||||
static const struct proc_ops prism2_aux_dump_proc_ops = {
|
||||
.proc_read = prism2_aux_dump_proc_no_read,
|
||||
};
|
||||
|
||||
|
||||
@@ -379,9 +379,9 @@ void hostap_init_proc(local_info_t *local)
|
||||
proc_create_seq_data("wds", 0, local->proc,
|
||||
&prism2_wds_proc_seqops, local);
|
||||
proc_create_data("pda", 0, local->proc,
|
||||
&prism2_pda_proc_fops, local);
|
||||
&prism2_pda_proc_ops, local);
|
||||
proc_create_data("aux_dump", 0, local->proc,
|
||||
local->func->read_aux_fops ?: &prism2_aux_dump_proc_fops,
|
||||
local->func->read_aux_proc_ops ?: &prism2_aux_dump_proc_ops,
|
||||
local);
|
||||
proc_create_seq_data("bss_list", 0, local->proc,
|
||||
&prism2_bss_list_proc_seqops, local);
|
||||
|
@@ -599,7 +599,7 @@ struct prism2_helper_functions {
|
||||
struct prism2_download_param *param);
|
||||
int (*tx)(struct sk_buff *skb, struct net_device *dev);
|
||||
int (*set_tim)(struct net_device *dev, int aid, int set);
|
||||
const struct file_operations *read_aux_fops;
|
||||
const struct proc_ops *read_aux_proc_ops;
|
||||
|
||||
int need_tx_headroom; /* number of bytes of headroom needed before
|
||||
* IEEE 802.11 header */
|
||||
|
Reference in New Issue
Block a user