Skip to contentSkip to conversation

perf tool: fix compile failure with missed 'linux/export.h'

PATCH In review Ming Lei 1 participant 2 messages Mar 21, 2012 perf events

lore
Share & tools
lore

Ming Lei

author
#0 lore raw

PATCH 1/1 perf tool: fix compile failure with missed 'linux/export.h'

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

---
 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
tools/perf/Makefile +1 -0
index 74fd7f8..ad9d1cb 100644
@@ -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
tools/perf/util/include/linux/export.h new file +6 -0
new file mode 100644
index 0000000..841636d
@@ -0,0 +1,6 @@
+#ifndef PERF_LINUX_EXPORT_H
+#define PERF_LINUX_EXPORT_H
+
+#define EXPORT_SYMBOL(name)
+
+#endif
Signature · 1 line
1.7.9.1
author
#1 lore raw
Quoted 2 lines · Ming Lei

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