From: Adrian Bunk <bunk@stusta.de>
To: pj@sgi.com, simon.derr@bull.net
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] kernel/cpuset.c: cleanups
Date: Fri, 6 Jul 2007 01:23:11 +0200 [thread overview]
Message-ID: <20070705232311.GZ3492@stusta.de> (raw)
This patch contains the following cleanups:
- make the following needlessly global functions static:
- cpuset_can_attach()
- cpuset_attach()
- cpuset_populate()
- cpuset_post_clone()
- cpuset_create()
- cpuset_destroy()
- remove the unused EXPORT_SYMBOL_GPL(cpuset_mem_spread_node)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
kernel/cpuset.c | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
--- linux-2.6.22-rc6-mm1/kernel/cpuset.c.old 2007-07-03 15:40:33.000000000 +0200
+++ linux-2.6.22-rc6-mm1/kernel/cpuset.c 2007-07-04 23:32:06.000000000 +0200
@@ -873,8 +873,8 @@
return val;
}
-int cpuset_can_attach(struct container_subsys *ss,
- struct container *cont, struct task_struct *tsk)
+static int cpuset_can_attach(struct container_subsys *ss,
+ struct container *cont, struct task_struct *tsk)
{
struct cpuset *cs = container_cs(cont);
@@ -884,9 +884,9 @@
return security_task_setscheduler(tsk, 0, NULL);
}
-void cpuset_attach(struct container_subsys *ss,
- struct container *cont, struct container *oldcont,
- struct task_struct *tsk)
+static void cpuset_attach(struct container_subsys *ss,
+ struct container *cont, struct container *oldcont,
+ struct task_struct *tsk)
{
cpumask_t cpus;
nodemask_t from, to;
@@ -1163,7 +1163,7 @@
.private = FILE_SPREAD_SLAB,
};
-int cpuset_populate(struct container_subsys *ss, struct container *cont)
+static int cpuset_populate(struct container_subsys *ss, struct container *cont)
{
int err;
@@ -1205,8 +1205,8 @@
* changed to grant parent->cpus_allowed-sibling_cpus_exclusive
* (and likewise for mems) to the new container.
*/
-void cpuset_post_clone(struct container_subsys *ss,
- struct container *container)
+static void cpuset_post_clone(struct container_subsys *ss,
+ struct container *container)
{
struct container *parent, *child;
struct cpuset *cs, *parent_cs;
@@ -1234,7 +1234,7 @@
* Must be called with the mutex on the parent inode held
*/
-int cpuset_create(struct container_subsys *ss, struct container *cont)
+static int cpuset_create(struct container_subsys *ss, struct container *cont)
{
struct cpuset *cs;
struct cpuset *parent;
@@ -1269,7 +1269,7 @@
return 0;
}
-void cpuset_destroy(struct container_subsys *ss, struct container *cont)
+static void cpuset_destroy(struct container_subsys *ss, struct container *cont)
{
struct cpuset *cs = container_cs(cont);
@@ -1726,7 +1726,6 @@
current->cpuset_mem_spread_rotor = node;
return node;
}
-EXPORT_SYMBOL_GPL(cpuset_mem_spread_node);
/**
* cpuset_excl_nodes_overlap - Do we overlap @p's mem_exclusive ancestors?
next reply other threads:[~2007-07-05 23:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 23:23 Adrian Bunk [this message]
2007-07-06 1:28 ` [2.6 patch] kernel/cpuset.c: cleanups Paul Jackson
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=20070705232311.GZ3492@stusta.de \
--to=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.com \
--cc=simon.derr@bull.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.