* headers_check: asm-*/hw_breakpoint.h is not exported
@ 2009-12-06 19:49 Geert Uytterhoeven
2009-12-07 16:12 ` [PATCH] don't include asm/hw_breakpoint.h in user space Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2009-12-06 19:49 UTC (permalink / raw)
To: linux-kernel
`make headers_check' now complains:
usr/include/linux/perf_event.h:22: included file
'asm-m68k/hw_breakpoint.h' is not exported
although CONFIG_HAVE_HW_BREAKPOINT is not set.
As <asm/hw_breakpoint.h> exists for x86 only, I guess every one else
is suffering from this.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] don't include asm/hw_breakpoint.h in user space
2009-12-06 19:49 headers_check: asm-*/hw_breakpoint.h is not exported Geert Uytterhoeven
@ 2009-12-07 16:12 ` Arnd Bergmann
2009-12-08 11:30 ` [tip:perf/urgent] perf events: hw_breakpoints: Don't " tip-bot for Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2009-12-07 16:12 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: linux-kernel, Frederic Weisbecker, Alan Stern, K.Prasad, Ingo Molnar
asm/hw_breakpoint.h is evidently a kernel internal file and should
not be included globally, not even under an #ifdef.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
On Sunday 06 December 2009, Geert Uytterhoeven wrote:
> `make headers_check' now complains:
>
> usr/include/linux/perf_event.h:22: included file
> 'asm-m68k/hw_breakpoint.h' is not exported
>
> although CONFIG_HAVE_HW_BREAKPOINT is not set.
>
> As <asm/hw_breakpoint.h> exists for x86 only, I guess every one else
> is suffering from this.
Even on x86, that header is not exported.
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -18,10 +18,6 @@
#include <linux/ioctl.h>
#include <asm/byteorder.h>
-#ifdef CONFIG_HAVE_HW_BREAKPOINT
-#include <asm/hw_breakpoint.h>
-#endif
-
/*
* User-space ABI bits:
*/
@@ -451,6 +447,10 @@ enum perf_callchain_context {
# include <asm/perf_event.h>
#endif
+#ifdef CONFIG_HAVE_HW_BREAKPOINT
+#include <asm/hw_breakpoint.h>
+#endif
+
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/rculist.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/urgent] perf events: hw_breakpoints: Don't include asm/hw_breakpoint.h in user space
2009-12-07 16:12 ` [PATCH] don't include asm/hw_breakpoint.h in user space Arnd Bergmann
@ 2009-12-08 11:30 ` tip-bot for Arnd Bergmann
0 siblings, 0 replies; 3+ messages in thread
From: tip-bot for Arnd Bergmann @ 2009-12-08 11:30 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, stern, arnd, geert, fweisbec, tglx,
mingo, prasad
Commit-ID: 2ff6cfd70720780234fdfea636218c2a62b31287
Gitweb: http://git.kernel.org/tip/2ff6cfd70720780234fdfea636218c2a62b31287
Author: Arnd Bergmann <arnd@arndb.de>
AuthorDate: Mon, 7 Dec 2009 17:12:58 +0100
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Tue, 8 Dec 2009 02:58:40 +0100
perf events: hw_breakpoints: Don't include asm/hw_breakpoint.h in user space
asm/hw_breakpoint.h is evidently a kernel internal file and
should not be included globally, not even under an #ifdef.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <200912071712.58650.arnd@arndb.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
include/linux/perf_event.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 89098e3..bf33294 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -18,10 +18,6 @@
#include <linux/ioctl.h>
#include <asm/byteorder.h>
-#ifdef CONFIG_HAVE_HW_BREAKPOINT
-#include <asm/hw_breakpoint.h>
-#endif
-
/*
* User-space ABI bits:
*/
@@ -451,6 +447,10 @@ enum perf_callchain_context {
# include <asm/perf_event.h>
#endif
+#ifdef CONFIG_HAVE_HW_BREAKPOINT
+#include <asm/hw_breakpoint.h>
+#endif
+
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/rculist.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-08 11:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-06 19:49 headers_check: asm-*/hw_breakpoint.h is not exported Geert Uytterhoeven
2009-12-07 16:12 ` [PATCH] don't include asm/hw_breakpoint.h in user space Arnd Bergmann
2009-12-08 11:30 ` [tip:perf/urgent] perf events: hw_breakpoints: Don't " tip-bot for Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome