projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31e0017
)
mm/memcontrol.c: fix warning with CONFIG_NUMA=n
author
Andrew Morton
<
[email protected]
>
Fri, 3 Feb 2012 23:37:14 +0000
(15:37 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 4 Feb 2012 00:16:40 +0000
(16:16 -0800)
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]
>
mm/memcontrol.c
patch
|
blob
|
history
diff --git
a/mm/memcontrol.c
b/mm/memcontrol.c
index 556859fec4ef45fe87bd4060612501354ed48c9a..6728a7ae6f2d1eb42c8ac183ec69098aa80d2d6c 100644
(file)
--- a/
mm/memcontrol.c
+++ b/
mm/memcontrol.c
@@
-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);