mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] perf tool: fix compile failure with missed 'linux/export.h'
@ 2012-03-21  8:59 Ming Lei
  2012-03-21  9:11 ` Ming Lei
  0 siblings, 1 reply; 2+ messages in thread
From: Ming Lei @ 2012-03-21  8:59 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: Ingo Molnar, linux-kernel, Ming Lei

Just fake a export.h under util/include/linux so that perf
can be built successfully.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
---
 tools/perf/Makefile                    |    1 +
 tools/perf/util/include/linux/export.h |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
 create mode 100644 tools/perf/util/include/linux/export.h

diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 74fd7f8..ad9d1cb 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -250,6 +250,7 @@ LIB_H += util/include/linux/ctype.h
 LIB_H += util/include/linux/kernel.h
 LIB_H += util/include/linux/list.h
 LIB_H += util/include/linux/module.h
+LIB_H += util/include/linux/export.h
 LIB_H += util/include/linux/poison.h
 LIB_H += util/include/linux/prefetch.h
 LIB_H += util/include/linux/rbtree.h
diff --git a/tools/perf/util/include/linux/export.h b/tools/perf/util/include/linux/export.h
new file mode 100644
index 0000000..841636d
--- /dev/null
+++ b/tools/perf/util/include/linux/export.h
@@ -0,0 +1,6 @@
+#ifndef PERF_LINUX_EXPORT_H
+#define PERF_LINUX_EXPORT_H
+
+#define EXPORT_SYMBOL(name)
+
+#endif
-- 
1.7.9.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] perf tool: fix compile failure with missed 'linux/export.h'
  2012-03-21  8:59 [PATCH] perf tool: fix compile failure with missed 'linux/export.h' Ming Lei
@ 2012-03-21  9:11 ` Ming Lei
  0 siblings, 0 replies; 2+ messages in thread
From: Ming Lei @ 2012-03-21  9:11 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: Ingo Molnar, linux-kernel, Ming Lei

On Wed, Mar 21, 2012 at 4:59 PM, Ming Lei <ming.lei@canonical.com> wrote:
> Just fake a export.h under util/include/linux so that perf
> can be built successfully.

lib/rbtree.c changed to include <linux/export.h>, so compile failure
is triggered to
build perf on -next.

Sorry for missing the above description in commit log.

Thanks,
--
Ming Lei

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-21  9:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21  8:59 [PATCH] perf tool: fix compile failure with missed 'linux/export.h' Ming Lei
2012-03-21  9:11 ` Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®