summaryrefslogtreecommitdiffstats
path: root/tools/perf/lib/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/lib/core.c')
-rw-r--r--tools/perf/lib/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/lib/core.c b/tools/perf/lib/core.c
index d0b9ae422b9f..58fc894b76c5 100644
--- a/tools/perf/lib/core.c
+++ b/tools/perf/lib/core.c
@@ -5,11 +5,12 @@
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
+#include <linux/compiler.h>
#include <perf/core.h>
#include <internal/lib.h>
#include "internal.h"
-static int __base_pr(enum libperf_print_level level, const char *format,
+static int __base_pr(enum libperf_print_level level __maybe_unused, const char *format,
va_list args)
{
return vfprintf(stderr, format, args);