Re: [PATCH] ppc32: removed usage of <asm/segment.h>

2 messages, 2 authors, 2005-08-17 · open the first message on its own page

Re: [PATCH] ppc32: removed usage of <asm/segment.h>

From: Miklos Szeredi <miklos@szeredi.hu>
Date: 2005-08-17 08:57:59

On Wed, Aug 17, 2005 at 12:43:37AM -0500, Kumar Gala wrote:
quoted
quoted
I concur, in fact we should really kill that thing off entirely.
I'm all for killing it off entirely but got some feedback that on  
i386 segment.h can be included by userspace programs.
No kernel headers can be included by userland anymore.
I know nothing about <asm/segment.h> but this generic statement is
simply not true.

There are perfectly valid uses of kernel headers from userspace.  For
example if a program uses the netlink interface, it should include
<linux/netlink.h>.  It's the interface definition after all.

Glibc headers also include <linux/*> and <asm/*> in quite few places.

Miklos

Re: [PATCH] ppc32: removed usage of <asm/segment.h>

From: Christoph Hellwig <hch@infradead.org>
Date: 2005-08-17 09:09:26

On Wed, Aug 17, 2005 at 10:56:24AM +0200, Miklos Szeredi wrote:
quoted
On Wed, Aug 17, 2005 at 12:43:37AM -0500, Kumar Gala wrote:
quoted
quoted
I concur, in fact we should really kill that thing off entirely.
I'm all for killing it off entirely but got some feedback that on  
i386 segment.h can be included by userspace programs.
No kernel headers can be included by userland anymore.
I know nothing about <asm/segment.h> but this generic statement is
simply not true.

There are perfectly valid uses of kernel headers from userspace.  For
example if a program uses the netlink interface, it should include
<linux/netlink.h>.  It's the interface definition after all.

Glibc headers also include <linux/*> and <asm/*> in quite few places.
But these files in /usr/include/ aren't provided by the kernel anymore.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help