linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/filemap: add static for function __add_to_page_cache_locked
@ 2020-11-06 11:24 Alex Shi
  2020-11-06 18:24 ` Ira Weiny
  2020-11-10  3:09 ` Souptick Joarder
  0 siblings, 2 replies; 22+ messages in thread
From: Alex Shi @ 2020-11-06 11:24 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel

Otherwise it cause gcc warning:
          ^~~~~~~~~~~~~~~
../mm/filemap.c:830:14: warning: no previous prototype for
‘__add_to_page_cache_locked’ [-Wmissing-prototypes]
 noinline int __add_to_page_cache_locked(struct page *page,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Andrew Morton <akpm@linux-foundation.org> 
Cc: linux-mm@kvack.org 
Cc: linux-kernel@vger.kernel.org 
---
 mm/filemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/filemap.c b/mm/filemap.c
index d90614f501da..249cf489f5df 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -827,7 +827,7 @@ int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask)
 }
 EXPORT_SYMBOL_GPL(replace_page_cache_page);
 
-noinline int __add_to_page_cache_locked(struct page *page,
+static noinline int __add_to_page_cache_locked(struct page *page,
 					struct address_space *mapping,
 					pgoff_t offset, gfp_t gfp,
 					void **shadowp)
-- 
1.8.3.1



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

end of thread, other threads:[~2020-12-10  3:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06 11:24 [PATCH] mm/filemap: add static for function __add_to_page_cache_locked Alex Shi
2020-11-06 18:24 ` Ira Weiny
2020-11-10  3:09 ` Souptick Joarder
2020-11-10 11:58   ` Alex Shi
2020-11-10 19:50   ` Andrew Morton
2020-11-12  0:18     ` Alex Shi
2020-12-07  8:11       ` Greg Thelen
2020-12-07  8:15       ` Michal Kubecek
2020-12-07 18:35         ` Justin Forbes
2020-12-07 22:44           ` Alexei Starovoitov
2020-12-07 22:53             ` Michal Kubecek
2020-12-07 22:59               ` Alexei Starovoitov
2020-12-08  1:12                 ` Alexei Starovoitov
2020-12-09 14:46                   ` Stanislaw Gruszka
2020-12-09 15:08                     ` Matthew Wilcox
2020-12-09 15:51                       ` Stanislaw Gruszka
2020-12-09 18:05                         ` Christoph Hellwig
2020-12-09 22:32                           ` Steven Rostedt
2020-12-10  1:12                             ` Alexei Starovoitov
2020-12-10  2:31                               ` Steven Rostedt
2020-12-10  3:02                                 ` Alexei Starovoitov
2020-12-09 20:59               ` Tony Luck

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).