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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080810211530.GB5480@cs181140183.pp.htv.fi>
Date:	Mon, 11 Aug 2008 00:15:31 +0300
From:	Adrian Bunk <bunk@...nel.org>
To:	Paul Menage <menage@...gle.com>
Cc:	linux-kernel@...r.kernel.org
Subject: [2.6 patch] make cgroup_is_removed() static

cgroup_is_removed() can now become static.

Additionally, make it no longer "inline" but let gcc decide whether or 
not to inline it.

Signed-off-by: Adrian Bunk <bunk@...nel.org>

---
8e37a5ecc6f51b3904d5be693c16324bad6923c5 
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index c98dd7c..f5df0ae 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -295,8 +295,6 @@ int cgroup_add_files(struct cgroup *cgrp,
 			const struct cftype cft[],
 			int count);
 
-int cgroup_is_removed(const struct cgroup *cgrp);
-
 int cgroup_path(const struct cgroup *cgrp, char *buf, int buflen);
 
 int cgroup_task_count(const struct cgroup *cgrp);
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 13932ab..e6d6d40 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -119,7 +119,7 @@ static int need_forkexit_callback __read_mostly;
 static int need_mm_owner_callback __read_mostly;
 
 /* convenient tests for these bits */
-inline int cgroup_is_removed(const struct cgroup *cgrp)
+static int cgroup_is_removed(const struct cgroup *cgrp)
 {
 	return test_bit(CGRP_REMOVED, &cgrp->flags);
 }

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ