Skip to contentSkip to conversation

perf tools: Add missing header, fixes build

tip:perf/urgent tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jan 23, 2011 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  a860a60818e48134c60315bf32f87575771e6602
Gitweb:     http://git.kernel.org/tip/a860a60818e48134c60315bf32f87575771e6602
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Sat, 22 Jan 2011 19:07:36 -0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Sat, 22 Jan 2011 19:15:39 -0200

perf tools: Add missing header, fixes build

We need the definiton for __always_inline in bitops.h to fix the build on distros where it isn't available or compiler.h doesn't get included indirectly.

One of the fixes needed to build perf on RHEL4 systems, for instance.

Cc: Eric Dumazet <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
LKML-Reference: <new-submission>

---
 tools/perf/util/include/linux/bitops.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/util/include/linux/bitops.h +1 -0
index 8be0b96..305c848 100644
@@ -2,6 +2,7 @@
 #define _PERF_LINUX_BITOPS_H_
 
 #include <linux/kernel.h>
+#include <linux/compiler.h>
 #include <asm/hweight.h>
 
 #define BITS_PER_LONG __WORDSIZE