aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-24 21:17:55 -0400
committerIngo Molnar <mingo@elte.hu>2008-05-05 17:56:17 -0400
commit983ed7a66bcec9dc307d89dc7af47cdf209e56af (patch)
treea5fc14c7fe993b795198bbeee2919ad695735e81 /kernel/sched.c
parentd478c2cfaa2476f8b6876f9eb4d8fddcfa986479 (diff)
sched: add statics, don't return void expressions
Noticed by sparse: kernel/sched.c:760:20: warning: symbol 'sched_feat_names' was not declared. Should it be static? kernel/sched.c:767:5: warning: symbol 'sched_feat_open' was not declared. Should it be static? kernel/sched_fair.c:845:3: warning: returning void-valued expression kernel/sched.c:4386:3: warning: returning void-valued expression Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index ed3caf26990d..d941ddc9ec1d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -757,14 +757,14 @@ const_debug unsigned int sysctl_sched_features =
757#define SCHED_FEAT(name, enabled) \ 757#define SCHED_FEAT(name, enabled) \
758 #name , 758 #name ,
759 759
760__read_mostly char *sched_feat_names[] = { 760static __read_mostly char *sched_feat_names[] = {
761#include "sched_features.h" 761#include "sched_features.h"
762 NULL 762 NULL
763}; 763};
764 764
765#undef SCHED_FEAT 765#undef SCHED_FEAT
766 766
767int sched_feat_open(struct inode *inode, struct file *filp) 767static int sched_feat_open(struct inode *inode, struct file *filp)
768{ 768{
769 filp->private_data = inode->i_private; 769 filp->private_data = inode->i_private;
770 return 0; 770 return 0;
@@ -4341,8 +4341,10 @@ void account_system_time(struct task_struct *p, int hardirq_offset,
4341 struct rq *rq = this_rq(); 4341 struct rq *rq = this_rq();
4342 cputime64_t tmp; 4342 cputime64_t tmp;
4343 4343
4344 if ((p->flags & PF_VCPU) && (irq_count() - hardirq_offset == 0)) 4344 if ((p->flags & PF_VCPU) && (irq_count() - hardirq_offset == 0)) {
4345 return account_guest_time(p, cputime); 4345 account_guest_time(p, cputime);
4346 return;
4347 }
4346 4348
4347 p->stime = cputime_add(p->stime, cputime); 4349 p->stime = cputime_add(p->stime, cputime);
4348 4350