Re: 2.6.6-rc3: gcc 2.95: cx88 __ucmpdi2 error
From: Linus Torvalds
Date: Sat May 01 2004 - 13:58:52 EST
On Sat, 1 May 2004, Andreas Schwab wrote:
>
> dev->tvnorm->id is __u64.
>
> linux/videodev2.h:typedef __u64 v4l2_std_id;
Ahh. And maybe this only happens for the "switch()" statement, which would
explain why gcc-2.95 doesn't have problem with a lot of other 64-bit uses
in the kernel.
A simple fix might be to just cast it down to a long, since the high bits
seem to be unused. I assume that would fix it. Alternatively, what about
making the "switch()" just be a series of if-statements?
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/