include file bug

From: S. Baker (sbaker@erols.com)
Date: Mon May 15 2000 - 16:40:31 EST


I am having a problem with one of the system include
files (version 2.3.99-pre6).
in include/linux/byteorder/swab.h, there is an else
for unoptimized definitions of some byte swapping code:
#else
# define __swab16(x) __fswab16(x)
# define __swab32(x) __fswab32(x)
# define __swab64(x) __fswab64(x)
#endif /* OPTIMIZE */

I believe it should be
#else
# define __swab16(x) ___swab16(x)
# define __swab32(x) ___swab32(x)
# define __swab64(x) ___swab64(x)
#endif /* OPTIMIZE */

Because with the way it is now, compiling a program not
using optimization will error out not being able to find
the __fswabNN routine, as the compiler doesn't do the
inline substitution.

S. Baker
bakers@erols.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:26 EST