diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-08-22 00:54:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-22 13:52:46 -0400 |
commit | 891ae71dc4fbd2454a3fa569e115a7ca86630949 (patch) | |
tree | 02542648d815a1da095ea11d4f53b069b2567ffe /fs/proc | |
parent | f6d2f584d88616e27eeb603dc8c88ca16e00d682 (diff) |
proc: spread "const" a bit
Link: http://lkml.kernel.org/r/20180627200614.GB18434@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index c9d97818a421..5185d7f6a51e 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
@@ -113,12 +113,12 @@ static inline void *__PDE_DATA(const struct inode *inode) | |||
113 | return PDE(inode)->data; | 113 | return PDE(inode)->data; |
114 | } | 114 | } |
115 | 115 | ||
116 | static inline struct pid *proc_pid(struct inode *inode) | 116 | static inline struct pid *proc_pid(const struct inode *inode) |
117 | { | 117 | { |
118 | return PROC_I(inode)->pid; | 118 | return PROC_I(inode)->pid; |
119 | } | 119 | } |
120 | 120 | ||
121 | static inline struct task_struct *get_proc_task(struct inode *inode) | 121 | static inline struct task_struct *get_proc_task(const struct inode *inode) |
122 | { | 122 | { |
123 | return get_pid_task(proc_pid(inode), PIDTYPE_PID); | 123 | return get_pid_task(proc_pid(inode), PIDTYPE_PID); |
124 | } | 124 | } |