mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
d56c0d45f0
commit
97a32539b9
100 changed files with 960 additions and 1005 deletions
|
@ -39,10 +39,10 @@ static int page_map_mmap( struct file *file, struct vm_area_struct *vma )
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct file_operations page_map_fops = {
|
||||
.llseek = page_map_seek,
|
||||
.read = page_map_read,
|
||||
.mmap = page_map_mmap
|
||||
static const struct proc_ops page_map_proc_ops = {
|
||||
.proc_lseek = page_map_seek,
|
||||
.proc_read = page_map_read,
|
||||
.proc_mmap = page_map_mmap,
|
||||
};
|
||||
|
||||
|
||||
|
@ -51,7 +51,7 @@ static int __init proc_ppc64_init(void)
|
|||
struct proc_dir_entry *pde;
|
||||
|
||||
pde = proc_create_data("powerpc/systemcfg", S_IFREG | 0444, NULL,
|
||||
&page_map_fops, vdso_data);
|
||||
&page_map_proc_ops, vdso_data);
|
||||
if (!pde)
|
||||
return 1;
|
||||
proc_set_size(pde, PAGE_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue