diff options
| author | Christoph Hellwig <[email protected]> | 2018-04-24 15:05:17 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2018-05-16 05:23:35 +0000 |
| commit | 44414d82cfe0f68cb59d0a42f599ccd893ae0032 (patch) | |
| tree | f89c89cf2f7c919c22bcf3dac566c89eac6d2ff4 /net/appletalk/atalk_proc.c | |
| parent | proc: introduce proc_create_seq{,_data} (diff) | |
| download | kernel-44414d82cfe0f68cb59d0a42f599ccd893ae0032.tar.gz kernel-44414d82cfe0f68cb59d0a42f599ccd893ae0032.zip | |
proc: introduce proc_create_seq_private
Variant of proc_create_data that directly take a struct seq_operations
argument + a private state size and drastically reduces the boilerplate
code in the callers.
All trivial callers converted over.
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'net/appletalk/atalk_proc.c')
| -rw-r--r-- | net/appletalk/atalk_proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/appletalk/atalk_proc.c b/net/appletalk/atalk_proc.c index d456c702e725..8006295f8bd7 100644 --- a/net/appletalk/atalk_proc.c +++ b/net/appletalk/atalk_proc.c @@ -236,7 +236,8 @@ int __init atalk_proc_init(void) if (!p) goto out_socket; - p = proc_create("arp", 0444, atalk_proc_dir, &atalk_seq_arp_fops); + p = proc_create_seq_private("arp", 0444, atalk_proc_dir, &aarp_seq_ops, + sizeof(struct aarp_iter_state), NULL); if (!p) goto out_arp; |
