linux-next: build failure after merge of the tip tree
From: Stephen Rothwell
Date: Sun Apr 17 2016 - 23:03:41 EST
Hi all,
After merging the tip tree, today's linux-next build (powerpc64le perf)
failed like this:
builtin-trace.c: In function 'cmd_trace':
builtin-trace.c:3112:7: error: variable 'max_stack_user_set' set but not used [-Werror=unused-but-set-variable]
bool max_stack_user_set = true;
^
Caused by commit
056149932602 ("perf trace: Make --(min,max}-stack imply "--call-graph dwarf"")
I added the following patch for today:
From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2016 12:56:48 +1000
Subject: [PATCH] perf: trace: fix build when HAVE_DWARF_UNWIND_SUPPORT is not set
Fixes: 056149932602 ("perf trace: Make --(min,max}-stack imply "--call-graph dwarf"")
Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
tools/perf/builtin-trace.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 026ec0c749b0..48dc23a4f405 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -3109,7 +3109,9 @@ int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused)
"per thread proc mmap processing timeout in ms"),
OPT_END()
};
+#ifdef HAVE_DWARF_UNWIND_SUPPORT
bool max_stack_user_set = true;
+#endif
bool mmap_pages_user_set = true;
const char * const trace_subcommands[] = { "record", NULL };
int err;
@@ -3149,7 +3151,9 @@ int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused)
if (trace.max_stack == UINT_MAX) {
trace.max_stack = PERF_MAX_STACK_DEPTH;
+#ifdef HAVE_DWARF_UNWIND_SUPPORT
max_stack_user_set = false;
+#endif
}
#ifdef HAVE_DWARF_UNWIND_SUPPORT
--
2.7.0
--
Cheers,
Stephen Rothwell