From 1fa97e8b1f327059aa98089abd8c3378cdf43017 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 7 May 2014 20:47:49 -0400 Subject: [PATCH] constify file_inode() Signed-off-by: Al Viro --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 94187721ad41..75bdd51ec9b8 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1874,7 +1874,7 @@ extern int current_umask(void); extern void ihold(struct inode * inode); extern void iput(struct inode *); -static inline struct inode *file_inode(struct file *f) +static inline struct inode *file_inode(const struct file *f) { return f->f_inode; } -- GitLab