Skip to content

Commit

Permalink
proc: spread "const" a bit
Browse files Browse the repository at this point in the history
Link: http://lkml.kernel.org/r/20180627200614.GB18434@avx2
Signed-off-by: Alexey Dobriyan <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and torvalds committed Aug 22, 2018
1 parent f6d2f58 commit 891ae71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fs/proc/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ static inline void *__PDE_DATA(const struct inode *inode)
return PDE(inode)->data;
}

static inline struct pid *proc_pid(struct inode *inode)
static inline struct pid *proc_pid(const struct inode *inode)
{
return PROC_I(inode)->pid;
}

static inline struct task_struct *get_proc_task(struct inode *inode)
static inline struct task_struct *get_proc_task(const struct inode *inode)
{
return get_pid_task(proc_pid(inode), PIDTYPE_PID);
}
Expand Down
2 changes: 1 addition & 1 deletion include/linux/proc_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int open_related_ns(struct ns_common *ns,
struct ns_common *(*get_ns)(struct ns_common *ns));

/* get the associated pid namespace for a file in procfs */
static inline struct pid_namespace *proc_pid_ns(struct inode *inode)
static inline struct pid_namespace *proc_pid_ns(const struct inode *inode)
{
return inode->i_sb->s_fs_info;
}
Expand Down

0 comments on commit 891ae71

Please sign in to comment.