Skip to contentSkip to conversation

: Cgroups: Fix compile warning: incompatible types in kernel/sched.c on 2.6.26-rc1

PATCH Applied Mirco Tischler 3 participants 3 messages May 12, 2008 – May 13, 2008

lore
Share & tools
lore
#0 lore raw

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.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.

kernel/sched.c +1 -1
index c51b656..ba91376 100644
@@ -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);
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Mirco Tischler

Hi
I've got this warning on 2.6.26-rc1 on compile:

Quoted 3 lines

CC kernel/sched.o
kernel/sched.c:9026: warning: initialization from incompatible pointer type

This patch fixes it.

Quoted 8 lines

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.

Thanks.

Paul