The patch titled Subject: proc: spread "const" a bit has been added to the -mm tree. Its filename is proc-spread-const-a-bit.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/proc-spread-const-a-bit.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/proc-spread-const-a-bit.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexey Dobriyan <adobriyan@xxxxxxxxx> Subject: proc: spread "const" a bit Link: http://lkml.kernel.org/r/20180627200614.GB18434@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- diff -puN fs/proc/internal.h~proc-spread-const-a-bit fs/proc/internal.h --- a/fs/proc/internal.h~proc-spread-const-a-bit +++ a/fs/proc/internal.h @@ -113,12 +113,12 @@ static inline void *__PDE_DATA(const str 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); } diff -puN include/linux/proc_fs.h~proc-spread-const-a-bit include/linux/proc_fs.h --- a/include/linux/proc_fs.h~proc-spread-const-a-bit +++ a/include/linux/proc_fs.h @@ -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; } _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are proc-condemn-myself-to-maintainers.patch proc-fixup-pde-allocation-bloat.patch proc-test-proc-self-symlink.patch proc-test-proc-thread-self-symlink.patch proc-smaller-readlock-section-in-readdir-proc.patch proc-put-task-earlier-in-proc-fail-nth.patch proc-save-2-atomic-ops-on-write-to-proc-attr.patch proc-use-macro-in-proc-latency-hook.patch proc-spread-const-a-bit.patch proc-use-unsigned-int-in-proc-stat-hook.patch proc-use-%02u-format.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html