Skip to content

Commit 0c70814

Browse files
mircotorvalds
authored andcommitted
cgroups: fix compile warning
Return type of cpu_rt_runtime_write() should be int instead of ssize_t. Signed-off-by: Mirco Tischler <mt-ml@gmx.de> Acked-by: Paul Menage <menage@google.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b7cffc1 commit 0c70814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8986,7 +8986,7 @@ static u64 cpu_shares_read_u64(struct cgroup *cgrp, struct cftype *cft)
89868986
#endif
89878987

89888988
#ifdef CONFIG_RT_GROUP_SCHED
8989-
static ssize_t cpu_rt_runtime_write(struct cgroup *cgrp, struct cftype *cft,
8989+
static int cpu_rt_runtime_write(struct cgroup *cgrp, struct cftype *cft,
89908990
s64 val)
89918991
{
89928992
return sched_group_set_rt_runtime(cgroup_tg(cgrp), val);

0 commit comments

Comments
 (0)