From: Glauber Costa Subject: [PATCH 1/3] nitpick: make simple functions inline Date: Sun, 11 Dec 2011 15:45:36 +0100 Message-ID: <1323614738-7405-3-git-send-email-glommer@parallels.com> References: <1323614738-7405-1-git-send-email-glommer@parallels.com> Return-path: In-Reply-To: <1323614738-7405-1-git-send-email-glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: jbottomley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, bsingharora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org, kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org, tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Glauber Costa Those are quite simple bit-testing functions that are only used within this file. Not reason for them not to be inline. Signed-off-by: Glauber Costa --- kernel/cgroup.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index d9d5648..e4b9d3c 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -241,12 +241,12 @@ static int cgroup_is_releasable(const struct cgroup *cgrp) return (cgrp->flags & bits) == bits; } -static int notify_on_release(const struct cgroup *cgrp) +static inline int notify_on_release(const struct cgroup *cgrp) { return test_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags); } -static int clone_children(const struct cgroup *cgrp) +static inline int clone_children(const struct cgroup *cgrp) { return test_bit(CGRP_CLONE_CHILDREN, &cgrp->flags); } -- 1.7.6.4 -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html