Re: Compiling kernel with SuSE 8.2/gcc 3.3

From: Richard B. Johnson (
Date: Wed Jun 11 2003 - 06:20:45 EST

On Wed, 11 Jun 2003, Steve French wrote:

> Stephan von Krawczynski <> writes:
> > during tests with latest SuSE distro 8.2 compiling 2.4.21-pre6 showed a lot of
> > "comparison between signed and unsigned" warnings. It looks like SuSE ships gcc
> I also noticed lots of compiler warnings with gcc 3.3, now default in SuSE,
> and cleaned up most of them for the cifs vfs but there are a few that just
> look wrong for gcc to spit out warnings on. For example the following
> local variable definition and the similar ones in the same file
> (fs/cifs/inode.c):
> __u64 uid = 0xFFFFFFFFFFFFFFFF;
> generates a warning saying the value is too long for a long on
> x86 SuSE 8.2 with gcc 3.3 - which makes no sense. Any value
> above 0xFFFFFFFFF generates the same warning (intuitively
> 36 bits should fit in an unsigned 64 bit local variable).

I think the compiler doesn't have a default type for something
that long. Therefore you have to define is as:

         __u64 uid = 0xFFFFFFFFFFFFFFFFULL;

Seems dumb, but it even works.

Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.

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:27 EST