diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-02-07 03:13:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:18 -0500 |
commit | e9685a03c8c3162cfa9ff02d254ea5c848f9facb (patch) | |
tree | 9267e6f5bbccfb4af41a9efeb170e9d29a838d4f /kernel | |
parent | 8dc4f3e17dd5f7e59ce568155ccd8974af879315 (diff) |
kernel/cgroup.c: make 2 functions static
cgroup_is_releasable() and notify_on_release() should be static,
not global inline.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index b0fee0c61445..4d67a39c58a8 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -141,7 +141,7 @@ enum { | |||
141 | ROOT_NOPREFIX, /* mounted subsystems have no named prefix */ | 141 | ROOT_NOPREFIX, /* mounted subsystems have no named prefix */ |
142 | }; | 142 | }; |
143 | 143 | ||
144 | inline int cgroup_is_releasable(const struct cgroup *cgrp) | 144 | static int cgroup_is_releasable(const struct cgroup *cgrp) |
145 | { | 145 | { |
146 | const int bits = | 146 | const int bits = |
147 | (1 << CGRP_RELEASABLE) | | 147 | (1 << CGRP_RELEASABLE) | |
@@ -149,7 +149,7 @@ inline int cgroup_is_releasable(const struct cgroup *cgrp) | |||
149 | return (cgrp->flags & bits) == bits; | 149 | return (cgrp->flags & bits) == bits; |
150 | } | 150 | } |
151 | 151 | ||
152 | inline int notify_on_release(const struct cgroup *cgrp) | 152 | static int notify_on_release(const struct cgroup *cgrp) |
153 | { | 153 | { |
154 | return test_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags); | 154 | return test_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags); |
155 | } | 155 | } |