summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-05-07 20:47:49 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-09 02:39:00 -0400
commit1fa97e8b1f327059aa98089abd8c3378cdf43017 (patch)
treeaf9d5f877acce4a828e34d39b03c4d8dbef7bc7b
parent19d860a140beac48a1377f179e693abe86a9dac9 (diff)
downloadop-kernel-dev-1fa97e8b1f327059aa98089abd8c3378cdf43017.zip
op-kernel-dev-1fa97e8b1f327059aa98089abd8c3378cdf43017.tar.gz
constify file_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--include/linux/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 94187721..75bdd51 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;
}
OpenPOWER on IntegriCloud