diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-30 18:31:12 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-02 11:00:44 -0400 |
commit | fb72014d98afd51e85aab9c061344ef32d615606 (patch) | |
tree | 18713d4d1084870c604b512396b893944a2bbdab /tools/perf/Makefile | |
parent | bc4b473f1aa2ef785ccfd890a24a1de5a6660f98 (diff) |
perf tools: Don't use code surrounded by __KERNEL__
We need to refactor code to be explicitely shared by the kernel and at
least the tools/ userspace programs, so, till we do that, copy the bare
minimum bitmap/bitops code needed by tools/perf.
Reported-by: "H. Peter Anvin" <hpa@zytor.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 739c4412b183..c5ac0a991565 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -377,9 +377,9 @@ LIB_H += util/include/linux/rbtree.h | |||
377 | LIB_H += util/include/linux/string.h | 377 | LIB_H += util/include/linux/string.h |
378 | LIB_H += util/include/linux/types.h | 378 | LIB_H += util/include/linux/types.h |
379 | LIB_H += util/include/asm/asm-offsets.h | 379 | LIB_H += util/include/asm/asm-offsets.h |
380 | LIB_H += util/include/asm/bitops.h | ||
381 | LIB_H += util/include/asm/bug.h | 380 | LIB_H += util/include/asm/bug.h |
382 | LIB_H += util/include/asm/byteorder.h | 381 | LIB_H += util/include/asm/byteorder.h |
382 | LIB_H += util/include/asm/hweight.h | ||
383 | LIB_H += util/include/asm/swab.h | 383 | LIB_H += util/include/asm/swab.h |
384 | LIB_H += util/include/asm/system.h | 384 | LIB_H += util/include/asm/system.h |
385 | LIB_H += util/include/asm/uaccess.h | 385 | LIB_H += util/include/asm/uaccess.h |
@@ -435,7 +435,6 @@ LIB_OBJS += $(OUTPUT)util/path.o | |||
435 | LIB_OBJS += $(OUTPUT)util/rbtree.o | 435 | LIB_OBJS += $(OUTPUT)util/rbtree.o |
436 | LIB_OBJS += $(OUTPUT)util/bitmap.o | 436 | LIB_OBJS += $(OUTPUT)util/bitmap.o |
437 | LIB_OBJS += $(OUTPUT)util/hweight.o | 437 | LIB_OBJS += $(OUTPUT)util/hweight.o |
438 | LIB_OBJS += $(OUTPUT)util/find_next_bit.o | ||
439 | LIB_OBJS += $(OUTPUT)util/run-command.o | 438 | LIB_OBJS += $(OUTPUT)util/run-command.o |
440 | LIB_OBJS += $(OUTPUT)util/quote.o | 439 | LIB_OBJS += $(OUTPUT)util/quote.o |
441 | LIB_OBJS += $(OUTPUT)util/strbuf.o | 440 | LIB_OBJS += $(OUTPUT)util/strbuf.o |
@@ -948,19 +947,6 @@ $(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS | |||
948 | $(OUTPUT)util/rbtree.o: ../../lib/rbtree.c $(OUTPUT)PERF-CFLAGS | 947 | $(OUTPUT)util/rbtree.o: ../../lib/rbtree.c $(OUTPUT)PERF-CFLAGS |
949 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | 948 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< |
950 | 949 | ||
951 | # some perf warning policies can't fit to lib/bitmap.c, eg: it warns about variable shadowing | ||
952 | # from <string.h> that comes from kernel headers wrapping. | ||
953 | KBITMAP_FLAGS=`echo $(ALL_CFLAGS) | sed s/-Wshadow// | sed s/-Wswitch-default// | sed s/-Wextra//` | ||
954 | |||
955 | $(OUTPUT)util/bitmap.o: ../../lib/bitmap.c $(OUTPUT)PERF-CFLAGS | ||
956 | $(QUIET_CC)$(CC) -o $@ -c $(KBITMAP_FLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
957 | |||
958 | $(OUTPUT)util/hweight.o: ../../lib/hweight.c $(OUTPUT)PERF-CFLAGS | ||
959 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
960 | |||
961 | $(OUTPUT)util/find_next_bit.o: ../../lib/find_next_bit.c $(OUTPUT)PERF-CFLAGS | ||
962 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
963 | |||
964 | $(OUTPUT)util/scripting-engines/trace-event-perl.o: util/scripting-engines/trace-event-perl.c $(OUTPUT)PERF-CFLAGS | 950 | $(OUTPUT)util/scripting-engines/trace-event-perl.o: util/scripting-engines/trace-event-perl.c $(OUTPUT)PERF-CFLAGS |
965 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $< | 951 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $< |
966 | 952 | ||