From: Michael Ellerman <mpe@ellerman.id.au>
To: David Herrmann <dh.herrmann@gmail.com>
Cc: Jim Davis <jim.epost@gmail.com>,
Stephen Rothwell <sfr@canb.auug.org.au>,
linux-next <linux-next@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Daniel Mack <daniel@zonque.org>,
David Herrmann <dh.herrmann@googlemail.com>,
Djalal Harouni <tixxdz@opendz.org>
Subject: Re: randconfig build error with next-20150316, in samples/kdbus/kdbus-workers
Date: Tue, 17 Mar 2015 13:09:01 +1100 [thread overview]
Message-ID: <1426558141.31646.5.camel@ellerman.id.au> (raw)
In-Reply-To: <CANq1E4RXYQJLcjf3pCu7zovw01uMnHTtMkiugjsJVQ8D=fLnVg@mail.gmail.com>
On Tue, 2015-03-17 at 00:00 +0100, David Herrmann wrote:
> Hi
>
> On Mon, Mar 16, 2015 at 11:51 PM, Michael Ellerman <mpe@ellerman.id.au> wrote:
> > On Mon, 2015-03-16 at 23:27 +0100, David Herrmann wrote:
> >> The uapi-include only causes the warning, not the build failure.
> >
> > I don't know how you came to that conclusion?
> >
> > It fails looking for linux/compiler.h, which is only included from the kernel
> > headers, never from the exported headers.
>
> We only include linux/kdbus.h. On sanitized headers, this will include
> linux/types.h -> linux/posix_types.h -> linux/stddef.h.
> If you use the uapi headers, then stddef.h is not sanitized and will
> still include linux/compiler.h (which is removed on sanitized
> headers). Hence, this error only occurs if you include
> uapi/linux/kdbus.h. With sanitized headers in ./usr/, the compiler
> will prefer ./usr/linux/kdbus.h and ./usr/linux/stddef.h, thus never
> including any linux/compiler.h.
Right. But if the uapi include isn't there, you don't get this build failure.
This build failure is caused by the uapi include.
> If you drop -I./include/uapi/, you will get "linux/kdbus.h not found".
Yep, which is exactly correct (unless it's provided by your distro headers).
> The error will be different, but it will not fix anything. However, if
> you run "make headers_install", everything will compile just fine even
> with -I./include/uapi/.
Well probably. But I could probably construct a scenario where something gets
pulled in from uapi, and then you've got a mixture of user & kernel headers
again.
At the end of the day there is no good reason to use include/uapi, I think we
agree on that :)
cheers
next prev parent reply other threads:[~2015-03-17 2:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 16:22 randconfig build error with next-20150316, in samples/kdbus/kdbus-workers Jim Davis
2015-03-16 16:31 ` David Herrmann
2015-03-16 21:12 ` Michael Ellerman
2015-03-16 22:27 ` David Herrmann
2015-03-16 22:51 ` Michael Ellerman
2015-03-16 23:00 ` David Herrmann
2015-03-17 2:09 ` Michael Ellerman [this message]
2015-03-16 22:28 ` Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426558141.31646.5.camel@ellerman.id.au \
--to=mpe@ellerman.id.au \
--cc=daniel@zonque.org \
--cc=dh.herrmann@gmail.com \
--cc=dh.herrmann@googlemail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jim.epost@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=tixxdz@opendz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox