Re: UAPI headers including non-UAPI headers by accident?

From: Michael Kerrisk (man-pages)
Date: Thu Jun 18 2015 - 03:53:09 EST


[CC += David]

On 2 June 2015 at 18:36, Andy Lutomirski <luto@xxxxxxxxxx> wrote:
> include/uapi/linux/signal.h starts with:
>
> #ifndef _UAPI_LINUX_SIGNAL_H
> #define _UAPI_LINUX_SIGNAL_H
>
> #include <asm/signal.h>
> #include <asm/siginfo.h>
>
> This causes it to include <asm/signal.h>, which is not the same thing
> as <uapi/asm/signal.h>. Changing that will break userspace use of
> this header, though, as the uapi/ won't get removed.
>
> What's the correct fix? This is causing trouble with a UML build for me.

Perhaps David has some insight, since he architected the original UAPI split.

Cheers,

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