lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 15 May 2009 13:24:31 +0300 (EEST)
From:	Pekka J Enberg <penberg@...helsinki.fi>
To:	akpm@...ux-foundation.org
cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] memcg: use ifdef for mem_cgroup_is_obsolete()

From: Pekka Enberg <penberg@...helsinki.fi>

When CONFIG_DEBUG_VM is disabled, I get the following warning:

    CC      mm/memcontrol.o
  mm/memcontrol.c:318: warning: ‘mem_cgroup_is_obsolete’ defined but not
  used

Fix that up by wrapping mem_cgroup_is_obsolete() in an ifdef.

Signed-off-by: Pekka Enberg <penberg@...helsinki.fi>
---
 mm/memcontrol.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 01c2d8f..51f2dbd 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -314,12 +314,14 @@ static struct mem_cgroup *try_get_mem_cgroup_from_mm(struct mm_struct *mm)
 	return mem;
 }
 
+#ifdef CONFIG_DEBUG_VM
 static bool mem_cgroup_is_obsolete(struct mem_cgroup *mem)
 {
 	if (!mem)
 		return true;
 	return css_is_removed(&mem->css);
 }
+#endif
 
 
 /*
-- 
1.5.6.3

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ