diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2019-07-17 02:26:45 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-17 05:23:21 +0300 |
commit | 9af27b28b1da1020e427b626c4967d0206b55100 (patch) | |
tree | 1eb44a1400da80592d117a93ab44f31b7d9259da /fs/proc/task_mmu.c | |
parent | ce251e0e3c0597ea8cab5787df579bd1f9c1aca1 (diff) | |
download | linux-9af27b28b1da1020e427b626c4967d0206b55100.tar.xz |
fs/proc/inode.c: use typeof_member() macro
Don't repeat function signatures twice.
This is a kind-of-precursor for "struct proc_ops".
Note:
typeof(pde->proc_fops->...) ...;
can't be used because ->proc_fops is "const struct file_operations *".
"const" prevents assignment down the code and it can't be deleted in the
type system.
Link: http://lkml.kernel.org/r/20190529191110.GB5703@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/task_mmu.c')
0 files changed, 0 insertions, 0 deletions