Re: Sparse crash when mixing int and enum in ternary operator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 8, 2010 at 5:24 PM, Pavel Roskin <proski@xxxxxxx> wrote:
> Hello!
>
> Sparse crashed when checking drivers/net/wireless/ath/ath9k/gpio.c in
> Linux.  I could reduce the crash to the following simple program:
>
> enum kind {
>    GOOD
> };
> static void foo(enum kind k)
> {
> }
> static void bar(int ok, int k)
> {
>    foo(ok ? GOOD : k);
> }
>
Confirm. This is cause by the recent enum-warning patch. Without it the sparse
runs fine.

Let me see if this is some thing easy to fix.

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux