rbtree: fix perf compilation
A message that is not in the archive (sent off-list or not yet received): 1344248036-9602-1-git-send-email-alexander.shishkin@linux.intel.com
Michel Lespinasse
Acked-byQuoted 27 lines · Alexander Shishkin
Commit
2cfaf9cc68190c24fdd05e4d104099b3f27c7a44(rbtree: adjust root color inrb_insert_color()only when necessary) introduces bool type and constants to therbtree.c, and breaks compilation oftools/perf:Quoted 9 lines
../../lib/rbtree.c: In function ‘rb_insert_color’:../../lib/rbtree.c:95:9: error: ‘true’ undeclared (first use in this function)../../lib/rbtree.c:95:9: note: each undeclared identifier is reported only once for each function it appears in../../lib/rbtree.c: In function ‘__rb_erase_color’:../../lib/rbtree.c:216:9: error: ‘true’ undeclared (first use in this function)../../lib/rbtree.c: In function ‘rb_erase’:../../lib/rbtree.c:368:2: error: unknown type name ‘bool’
make: *** [util/rbtree.o] Error 1This patch is the easiest solution I can think of.
Signed-off-by Alexander Shishkin <[email protected]>--- tools/perf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/perf/Makefile +0
-0
tools/perf/Makefile $(OUTPUT)ui/browsers/map.o: ui/browsers/map.c $(OUTPUT)PERF-CFLAGS · line 808
Quoted 8 lines
tools/perf/Makefile +1
-1@@ -802,7 +802,7 @@ $(OUTPUT)ui/browsers/map.o: ui/browsers/map.c $(OUTPUT)PERF-CFLAGS $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $< $(OUTPUT)util/rbtree.o: ../../lib/rbtree.c $(OUTPUT)PERF-CFLAGS - $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< + $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' -include stdbool.h $< $(OUTPUT)util/parse-events.o: util/parse-events.c $(OUTPUT)PERF-CFLAGS $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Wno-redundant-decls $<
Copying Andrew as this probably needs to go through his tree along with the rbtree patches.
Signature · 2 lines
Michel "Walken" Lespinasse A program is never fully debugged until the last user dies.