linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] anon_inodes: Make _anon_inode_getfile() static
@ 2020-07-28 17:11 Krzysztof Kozlowski
  2020-07-28 17:11 ` [PATCH 2/4] mm: swap: Fix kerneldoc of swap_vma_readahead() Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2020-07-28 17:11 UTC (permalink / raw)
  To: Alexander Viro, Andrew Morton, linux-fsdevel, linux-kernel, linux-mm
  Cc: Krzysztof Kozlowski

_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 --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;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-28 19:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-28 17:11 [PATCH 1/4] anon_inodes: Make _anon_inode_getfile() static Krzysztof Kozlowski
2020-07-28 17:11 ` [PATCH 2/4] mm: swap: Fix kerneldoc of swap_vma_readahead() Krzysztof Kozlowski
2020-07-28 17:11 ` [PATCH 3/4] mm: mempolicy: Fix kerneldoc of numa_map_to_online_node() Krzysztof Kozlowski
2020-07-28 17:11 ` [PATCH 4/4] mm: mmu_notifier: Fix and extend kerneldoc Krzysztof Kozlowski
2020-07-28 19:41   ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).