[Ksummit-2012-discuss] [ATTEND] Proposed discussion: Cleaning up the header file mess
davej at redhat.com
Thu Jun 21 19:57:32 UTC 2012
On Thu, Jun 21, 2012 at 08:53:47PM +0100, David Woodhouse wrote:
> On Thu, 2012-06-21 at 15:49 -0400, Dave Jones wrote:
> > > (1) Split the Userspace API (UAPI) out of the kernel headers into its own
> > > header directories.
> > I'd really like to see this happen. I think it would fix a lot of problems
> > we've had historically with "oh, userspace shouldn't have been using that".
> > I wouldn't be surprised if there are still cases of that that will fall out of
> > such a reworking.
> I suspect we caught most of those when I first introduced the 'make
> headers_install' stuff. Headers which shouldn't have been exported, and
> stuff that was inside __KERNEL__, just doesn't appear at all any more.
> There's some potential to censor stuff a bit more, I suppose, as we kill
> off instances of #ifdef __KERNEL__ by separating user bits into separate
> files (ideally included with #include_next). But mostly I expect we'd
> start by moving stuff as-is.
I suspect there's quite a few headers that we're exporting though that don't
have __KERNEL__ guards where they should.
I'm not sure if looking for this sort of thing is in the scope of what David[*]
had in mind for this part though.
[*] This thread needs more Dave/David's.
More information about the Ksummit-2012-discuss