mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@kernel.org>
To: Paul Menage <menage@google.com>
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] make cgroup_is_removed() static
Date: Mon, 11 Aug 2008 00:15:31 +0300	[thread overview]
Message-ID: <20080810211530.GB5480@cs181140183.pp.htv.fi> (raw)

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@kernel.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);
 }


             reply	other threads:[~2008-08-10 21:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-10 21:15 Adrian Bunk [this message]
2008-08-11  8:56 ` Paul Menage

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080810211530.GB5480@cs181140183.pp.htv.fi \
    --to=bunk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=menage@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®