summaryrefslogtreecommitdiff
path: root/tools/perf/util/dwarf-regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/dwarf-regs.c')
-rw-r--r--tools/perf/util/dwarf-regs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/dwarf-regs.c b/tools/perf/util/dwarf-regs.c
index 1321387f6948..86b3ef638fbb 100644
--- a/tools/perf/util/dwarf-regs.c
+++ b/tools/perf/util/dwarf-regs.c
@@ -29,7 +29,8 @@
#define __get_dwarf_regstr(tbl, n) (((n) < ARRAY_SIZE(tbl)) ? (tbl)[(n)] : NULL)
/* Return architecture dependent register string (for kprobe-tracer) */
-const char *get_dwarf_regstr(unsigned int n, unsigned int machine)
+const char *get_dwarf_regstr(unsigned int n, unsigned int machine,
+ unsigned int flags __maybe_unused)
{
switch (machine) {
case EM_NONE: /* Generic arch - use host arch */