Re: [PATCH-2.6.28 final] byteorder: fix new headers for userspace

From: Linus Torvalds
Date: Thu Dec 18 2008 - 15:10:36 EST




On Wed, 17 Dec 2008, Harvey Harrison wrote:
>
> glibc headers define both __LITTLE_ENDIAN and __BIG_ENDIAN
> which was tripping the check in linux/byteorder.h. Let's
> just stay out of userspace's way and use __KERN_{endian}

Gaah, ugly.

I think it would be better to just make it a config option, call it
CONFIG_[LITTLE|BIG]_ENDIAN and set it up in the architecture Kconfig file.
I think some of the people who can set it dynamically (or where it depends
on the target machine) already effectively do that.

Hmm?

Linus
--
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/