From: Matthew Wilcox <willy@linux.intel.com>
To: David Miller <davem@davemloft.net>
Cc: cmetcalf@tilera.com, willy@linux.intel.com, linux-kernel@vger.kernel.org
Subject: Re: perf build broke by list_head changes...
Date: Tue, 10 Aug 2010 11:13:06 -0400 [thread overview]
Message-ID: <20100810151306.GC6981@wil.cx> (raw)
In-Reply-To: <20100809.235746.115919762.davem@davemloft.net>
On Mon, Aug 09, 2010 at 11:57:46PM -0700, David Miller wrote:
> Commit:
>
> commit de5d9bf6541736dc7ad264d2b5cc99bc1b2ad958
> Author: Chris Metcalf <cmetcalf@tilera.com>
> Date: Fri Jul 2 13:41:14 2010 -0400
>
> Move list types from <linux/list.h> to <linux/types.h>.
>
> broke the build of 'perf'.
>
> If you move "struct list_head" into types.h, this means perf stops
> building because it depends upon being able to include linux/list.h
> from a userland application and at the same time be able to get the
> basic data types without defining __KERNEL__ or similar.
Sorry about that. Obviously, I didn't test-build this patch.
> Now that no longer occurs because the bulk of types.h is __KERNEL__
> protected and thus the build breaks since "struct list_head" is
> never defined.
list.h isn't a header-y file, so it's not an interface we expect userspace
to use. So one reasonable way to fix this is for perf to take its own copy.
Reverting the patch gets us back to the former problem (of not being
able to use list.h in certain cases).
We could do a glibc-like _WANT_LIST_HEAD macro. I don't think the
resulting uglification is reasonable.
perf could pretend that it's real userspace instead of being part of
the kernel and use a list implementation designed for userspace. I
don't know of a good one though.
Any preferences which solution we take?
prev parent reply other threads:[~2010-08-10 15:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-10 6:57 perf build broke by list_head changes David Miller
2010-08-10 12:36 ` Chris Metcalf
2010-08-10 12:44 ` Sam Ravnborg
2010-08-10 13:46 ` Arnaldo Carvalho de Melo
2010-08-10 14:29 ` Arnd Bergmann
2010-08-10 16:06 ` Arnaldo Carvalho de Melo
2010-08-10 14:32 ` Sam Ravnborg
2010-08-10 16:05 ` Arnaldo Carvalho de Melo
2010-08-10 15:13 ` Matthew Wilcox [this message]
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=20100810151306.GC6981@wil.cx \
--to=willy@linux.intel.com \
--cc=cmetcalf@tilera.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.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