Skip to content

Commit

Permalink
kernel/cgroup.c: make 2 functions static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Feb 7, 2008
1 parent 8dc4f3e commit e9685a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ enum {
ROOT_NOPREFIX, /* mounted subsystems have no named prefix */
};

inline int cgroup_is_releasable(const struct cgroup *cgrp)
static int cgroup_is_releasable(const struct cgroup *cgrp)
{
const int bits =
(1 << CGRP_RELEASABLE) |
(1 << CGRP_NOTIFY_ON_RELEASE);
return (cgrp->flags & bits) == bits;
}

inline int notify_on_release(const struct cgroup *cgrp)
static int notify_on_release(const struct cgroup *cgrp)
{
return test_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags);
}
Expand Down

0 comments on commit e9685a0

Please sign in to comment.