From: Mirco Tischler <mt-ml@gmx.de>
To: Ingo Molnar <mingo@redhat.com>,
lkml <linux-kernel@vger.kernel.org>,
Paul Menage <menage@google.com>
Subject: [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 [thread overview]
Message-ID: <1210558353.29885.12.camel@mtlp.tischlernetz> (raw)
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
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@gmx.de>
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2008-05-12 2:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-12 2:12 Mirco Tischler [this message]
2008-05-12 2:34 ` Paul Menage
2008-05-13 13:24 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1210558353.29885.12.camel@mtlp.tischlernetz \
--to=mt-ml@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.com \
--cc=mingo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®