: Cgroups: Fix compile warning: incompatible types in kernel/sched.c on 2.6.26-rc1
PATCH 1/1 : 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:
Quoted 3 lines
CC
kernel/sched.okernel/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.
kernel/sched.c +1 -1
@@ -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);
Quoted 7 lines · Mirco Tischler
Hi
I've got this warning on 2.6.26-rc1 on compile:Quoted 3 lines
CC
kernel/sched.okernel/sched.c:9026: warning: initialization from incompatible pointer typeThis patch fixes it.
Quoted 8 lines
Thanks
MircoCgroups: Fix compile warning: incompatible types in
kernel/sched.cReturn type of
cpu_rt_runtime_write()should be int instead ofssize_t.Signed-off-by Mirco Tischler <[email protected]>
Thanks.
Paul
Ingo Molnar
AppliedQuoted 7 lines · Paul Menage
Quoted 5 lines
Cgroups: Fix compile warning: incompatible types in
kernel/sched.cReturn type of
cpu_rt_runtime_write()should be int instead ofssize_t.Signed-off-by Mirco Tischler <[email protected]>Acked-by Paul Menage <[email protected]>
applied, thanks.
Ingo