diff mbox series

[1/4] anon_inodes: Make _anon_inode_getfile() static

Message ID 20200728171109.28687-1-krzk@kernel.org (mailing list archive)
State New, archived
Headers show
Series [1/4] anon_inodes: Make _anon_inode_getfile() static | expand

Commit Message

Krzysztof Kozlowski July 28, 2020, 5:11 p.m. UTC
_anon_inode_getfile() function is not used outside so make it static to
fix W=1 warning:

    fs/anon_inodes.c:80:14: warning: no previous prototype for '_anon_inode_getfile' [-Wmissing-prototypes]
       80 | struct file *_anon_inode_getfile(const char *name,

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 fs/anon_inodes.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/fs/anon_inodes.c b/fs/anon_inodes.c
index 25d92c64411e..90b022960027 100644
--- a/fs/anon_inodes.c
+++ b/fs/anon_inodes.c
@@ -77,11 +77,11 @@  static struct inode *anon_inode_make_secure_inode(
 	return inode;
 }
 
-struct file *_anon_inode_getfile(const char *name,
-				 const struct file_operations *fops,
-				 void *priv, int flags,
-				 const struct inode *context_inode,
-				 bool secure)
+static struct file *_anon_inode_getfile(const char *name,
+					const struct file_operations *fops,
+					void *priv, int flags,
+					const struct inode *context_inode,
+					bool secure)
 {
 	struct inode *inode;
 	struct file *file;