* [2.6 patch] make cpu_shares_{show,store}() static
@ 2007-10-24 16:23 Adrian Bunk
2007-10-24 16:25 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2007-10-24 16:23 UTC (permalink / raw)
To: Srivatsa Vaddagiri, Dhaval Giani, Ingo Molnar; +Cc: linux-kernel
cpu_shares_{show,store}() can become static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
kernel/user.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
ccebfda5cfe88df567a8b33f970bd6f2c167e79c
diff --git a/kernel/user.c b/kernel/user.c
index e91331c..0f3aa02 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -129,7 +129,7 @@ static inline void uids_mutex_unlock(void)
}
/* return cpu shares held by the user */
-ssize_t cpu_shares_show(struct kset *kset, char *buffer)
+static ssize_t cpu_shares_show(struct kset *kset, char *buffer)
{
struct user_struct *up = container_of(kset, struct user_struct, kset);
@@ -137,7 +137,8 @@ ssize_t cpu_shares_show(struct kset *kset, char *buffer)
}
/* modify cpu shares held by the user */
-ssize_t cpu_shares_store(struct kset *kset, const char *buffer, size_t size)
+static ssize_t cpu_shares_store(struct kset *kset, const char *buffer,
+ size_t size)
{
struct user_struct *up = container_of(kset, struct user_struct, kset);
unsigned long shares;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [2.6 patch] make cpu_shares_{show,store}() static
2007-10-24 16:23 [2.6 patch] make cpu_shares_{show,store}() static Adrian Bunk
@ 2007-10-24 16:25 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2007-10-24 16:25 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Srivatsa Vaddagiri, Dhaval Giani, linux-kernel
* Adrian Bunk <bunk@kernel.org> wrote:
> cpu_shares_{show,store}() can become static.
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
thanks, applied.
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-24 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 16:23 [2.6 patch] make cpu_shares_{show,store}() static Adrian Bunk
2007-10-24 16:25 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox