Linux MM tree latest commits
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: akpm@linux-foundation.org, chrisadr@gentoo.org,
	hannes@cmpxchg.org, mhocko@kernel.org,
	mm-commits@vger.kernel.org, torvalds@linux-foundation.org
Subject: [patch 105/119] mm/memcontrol.c: make local symbol static
Date: Wed, 31 Jan 2018 16:20:33 -0800	[thread overview]
Message-ID: <20180201002033.8YuKBS7RL%akpm@linux-foundation.org> (raw)

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,
_

                 reply	other threads:[~2018-02-01  0:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180201002033.8YuKBS7RL%akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=chrisadr@gentoo.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhocko@kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox