Linux MM tree latest commits
 help / color / mirror / Atom feed
* [patch 105/119] mm/memcontrol.c: make local symbol static
@ 2018-02-01  0:20 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2018-02-01  0:20 UTC (permalink / raw)
  To: akpm, chrisadr, hannes, mhocko, mm-commits, torvalds

From: Christopher Díaz Riveros <chrisadr@gentoo.org>
Subject: mm/memcontrol.c: make local symbol static

Fixes the following sparse warning:

mm/memcontrol.c:1097:14: warning:
  symbol 'memcg1_stats' was not declared. Should it be static?

Link: http://lkml.kernel.org/r/20180118193327.14200-1-chrisadr@gentoo.org
Signed-off-by: Christopher Díaz Riveros <chrisadr@gentoo.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/memcontrol.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/memcontrol.c~memcg-memcontrol-make-local-symbol-static mm/memcontrol.c
--- a/mm/memcontrol.c~memcg-memcontrol-make-local-symbol-static
+++ a/mm/memcontrol.c
@@ -1095,7 +1095,7 @@ static bool mem_cgroup_wait_acct_move(st
 	return false;
 }
 
-unsigned int memcg1_stats[] = {
+static const unsigned int memcg1_stats[] = {
 	MEMCG_CACHE,
 	MEMCG_RSS,
 	MEMCG_RSS_HUGE,
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-01  0:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01  0:20 [patch 105/119] mm/memcontrol.c: make local symbol static akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox