diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c index 2fde0d5e40b5f..b7a36f61adef3 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c @@ -177,7 +177,7 @@ void thread__find_cpumode_addr_location(struct thread *thread, struct addr_location *al) { size_t i; - const u8 const cpumodes[] = { + const u8 cpumodes[] = { PERF_RECORD_MISC_USER, PERF_RECORD_MISC_KERNEL, PERF_RECORD_MISC_GUEST_USER,