Skip to content

Commit

Permalink
mm/memcontrol.c: fix warning with CONFIG_NUMA=n
Browse files Browse the repository at this point in the history
mm/memcontrol.c: In function 'memcg_check_events':
mm/memcontrol.c:779: warning: unused variable 'do_numainfo'

Acked-by: Michal Hocko <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Hiroyuki KAMEZAWA <[email protected]>
Cc: Johannes Weiner <[email protected]>
Acked-by: "Kirill A. Shutemov" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Feb 4, 2012
1 parent 31e0017 commit 82b3f2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,8 @@ static void memcg_check_events(struct mem_cgroup *memcg, struct page *page)
/* threshold event is triggered in finer grain than soft limit */
if (unlikely(mem_cgroup_event_ratelimit(memcg,
MEM_CGROUP_TARGET_THRESH))) {
bool do_softlimit, do_numainfo;
bool do_softlimit;
bool do_numainfo __maybe_unused;

do_softlimit = mem_cgroup_event_ratelimit(memcg,
MEM_CGROUP_TARGET_SOFTLIMIT);
Expand Down

0 comments on commit 82b3f2a

Please sign in to comment.