Re: 2.6.1-mm2: compilation error

From: Milan Jurik
Date: Sat Jan 10 2004 - 11:27:26 EST


Hi,

On Sat, 10 Jan 2004, Trond Myklebust wrote:

> P? lau , 10/01/2004 klokka 10:46, skreiv Milan Jurik:
> > Hi,
> >
> > CC fs/nfs/nfs4proc.o
> > fs/nfs/nfs4proc.c: In function `nfs4_lck_type':
> > fs/nfs/nfs4proc.c:2042: warning: control reaches end of non-void function
> > fs/nfs/nfs4proc.c: In function `nfs4_proc_setlk':
> > fs/nfs/nfs4proc.c:2189: unknown field `clientid' specified in initializer
> > fs/nfs/nfs4proc.c:2189: warning: missing braces around initializer
> > fs/nfs/nfs4proc.c:2189: warning: (near initialization for
> > `otl.lock_owner')
> > make[3]: *** [fs/nfs/nfs4proc.o] Error 1
> > make[2]: *** [fs/nfs] Error 2
> > make[1]: *** [fs] Error 2
> > make[1]: Leaving directory `/usr/src/linux-2.6.1'
> > make: *** [stamp-build] Error 2
>
> No need. I'm surprised I don't see that first warning in my own
> compiles.
>
> The second one, however appears to be a compiler bug: AFAICS
> concatenating C99 designated intializers in that manner is supported by
> the spec (and indeed my version of gcc is quite happy with it). No
> matter, though, as we can work around it.
>
> Does the following patch work for you?
>

Yes, thanks.
Btw. gcc version 2.95.4 from Debian/Linux/Woody/i386

> Cheers,
> Trond
>
>

Best regards,

Milan Jurik
-
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/