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

This is a discussion on [Patch]: Cgroups: Fix compile warning: incompatible types in kernel/sched.c on 2.6.26-rc1 - Kernel ; 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 ...

+ Reply to Thread
Results 1 to 3 of 3

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

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

    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);


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQBIJ6eQz+diZ7c2xfgRAkREAJ9RjZ92KJ2Ys5uZHNQarE pwE2VuZgCeM39/
    V7vF+IeFAmPxT5KMiDN5eTo=
    =punQ
    -----END PGP SIGNATURE-----


  2. Re: [Patch]: Cgroups: Fix compile warning: incompatible types in kernel/sched.c on 2.6.26-rc1

    On Sun, May 11, 2008 at 7:12 PM, Mirco Tischler wrote:
    > 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


    Acked-by: Paul Menage

    Thanks.

    Paul
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  3. Re: [Patch]: Cgroups: Fix compile warning: incompatible types in kernel/sched.c on 2.6.26-rc1


    * Paul Menage wrote:

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

    >
    > Acked-by: Paul Menage


    applied, thanks.

    Ingo
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread