[Patch]: Cgroups: Fix compile warning: incompatible types in kernel/sched.c on 2.6.26-rc1
- Date: Mon, 12 May 2008 04:12:33 +0200
- From: Mirco Tischler <mt-ml@xxxxxx>
- Subject: [Patch]: Cgroups: Fix compile warning: incompatible types in kernel/sched.c on 2.6.26-rc1
Hi
I've got this warning on 2.6.26-rc1 on compile:
> CC kernel/sched.o
> kernel/sched.c:9026: warning: initialization from incompatible pointer type
>
This patch fixes it.
Thanks
Mirco
Cgroups: Fix compile warning: incompatible types in kernel/sched.c
Return type of cpu_rt_runtime_write() should be int instead of ssize_t.
Signed-off-by: Mirco Tischler <mt-ml@xxxxxx>
diff --git a/kernel/sched.c b/kernel/sched.c
index c51b656..ba91376 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8988,7 +8988,7 @@ static u64 cpu_shares_read_u64(struct cgroup *cgrp, struct cftype *cft)
#endif
#ifdef CONFIG_RT_GROUP_SCHED
-static ssize_t cpu_rt_runtime_write(struct cgroup *cgrp, struct cftype *cft,
+static int cpu_rt_runtime_write(struct cgroup *cgrp, struct cftype *cft,
s64 val)
{
return sched_group_set_rt_runtime(cgroup_tg(cgrp), val);
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Prev by Date: Re: 2.6.26-rc1: warnings from sysfs, bluetooth related
- Next by Date: Re: volanoMark regression with kernel 2.6.26-rc1
- Previous by thread: 2.6.25.1: Kernel BUG at mm/rmap.c:669, General Protection Faults, and generic hard locks
- Next by thread: Re: [Patch]: Cgroups: Fix compile warning: incompatible types in kernel/sched.c on 2.6.26-rc1
- Index(es):