RE: Compiling kernel with SuSE 8.2/gcc 3.3

From: Riley Williams (Riley@Williams.Name)
Date: Wed Jun 11 2003 - 21:17:22 EST

Hi Andrew.

>> Although it fixes it for building on 32 bit architectures,
>> won't changing
>> __u64 uid = 0xFFFFFFFFFFFFFFFF;
>> to
>> generate a type mismatch warning on ppc64 and similar 64
>> bit architectures since __u64 is not a unsigned long long
>> on ppc64 (it is unsigned long)?

> u64 uid = -1;
> will work just nicely.

Won't that generate a warning about assigning a signed quantity
to an unsigned variable?

What's really needed is a set of definitions along the lines of

        #define MAX_U32 ((__u32) 0xFFFFFFFFUL)
        #define MAX_U64 ((__u64) 0xFFFFFFFFFFFFFFFFULL)

but as an intermediate measure, how about...

        __u64 uid = ((__u64) 0xFFFFFFFFFFFFFFFFULL);

Best wishes from Riley.

 * Nothing as pretty as a smile, nothing as ugly as a frown.

--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system ( Version: 6.0.488 / Virus Database: 287 - Release Date: 5-Jun-2003

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:30 EST