Re: [PATCH] 2.4.21-rc1: byteorder.h breaks with __STRICT_ANSI__ defined (trivial)

Christoph Hellwig
2003-05-07T06:28:42Z

On Tue, May 06, 2003 at 10:27:29PM -0700, David S. Miller wrote:
> From: Christoph Hellwig <hch@infradead.org>
> Date: Wed, 7 May 2003 07:28:30 +0100
>
> rtnetlink.h is a bad example. Just to use something you quoted earlier in
> this thread..
>
> What is wrong with it? Truly kernel-only elements are protected
> with __KERNEL__ the rest are only the user visible and normal
> C types that are necessary for using rtnetlink in user apps.

If we have kernel declaration in those ABI headers you'd need an updated
abi-headers package for each change in one of your prototypes, rendering
it almost useless.

For this to work you really need two classes of headers, one the defines
ABIs and only ABIs and one that's for all kernel internal stuff.