Re: 2.1.90 swab.h warnings

Andi Kleen (ak@muc.de)
18 Mar 1998 22:11:28 +0100


Werner Almesberger <almesber@lrc.di.epfl.ch> writes:

> There's a little problem in 2.1.90 (as well as in older kernels - I had this
> already in 2.1.79) if programs are compiled with -Wmissing-prototypes on a
> libc5-based system and they #include <netinet/in.h>:
>
> The swap inline functions in linux/include/byteorder/swab.h don't have
> prototypes, so gcc (2.7.2.1 in my case) complains. I've attached a patch
> that fixes the warnings.
>
> I never took the time to understand the exact rules for inline function
> declarations, so this may be a sub-optimal approach. Could someone please
> check it and then pass it on to Linus ? Thanks !

Also this file lets all hell break lose on non-gcc compilers [and it is
used on libc5 systems].

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu