[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFyybeTZvzSU4L=hV1Y6+wXn2ZkuZF9R+vAj6MRVC+MmBQ@mail.gmail.com>
Date: Mon, 24 Oct 2011 09:51:09 +0200
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Martin Schwidefsky <schwidefsky@...ibm.com>
Cc: Ingo Molnar <mingo@...e.hu>, Simon Kirby <sim@...tway.ca>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Dave Jones <davej@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: Linux 3.1-rc9
On Mon, Oct 24, 2011 at 9:48 AM, Martin Schwidefsky
<schwidefsky@...ibm.com> wrote:
>
> These types are still there because cputime_t can be u32 or u64. E.g. this
>
> timer->expires.cpu = 0;
>
> will give the following sparse warning
>
> kernel/posix-cpu-timers.c:463:46: warning: implicit cast to nocast type
Ok, we should probably special-case zero for that case too (we
consider zero to be very special - it's not only the NULL pointer, but
0 is special for the bitwise types etc). So this is very arguably a
sparse issue: casting zero is special.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists