[PATCH 1/1] perf tools: Fix build break on powerpc
From: Sukadev Bhattiprolu
Date: Sat Mar 26 2016 - 17:31:39 EST
'Commit 531d2410635c ("perf tools: Do not include stringify.h from the
kernel sources")' seems to have accidentially removed the inclusion of
"util/header.h" from "arch/powerpc/util/header.c".
"util/header.h" provides the prototype for get_cpuid() and is needed to
build perf on Powerpc.
arch/powerpc/util/header.c:17:1: error: no previous prototype for
âget_cpuidâ [-Werror=missing-prototypes]
Reported-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxxxxxxxxxx>
---
tools/perf/arch/powerpc/util/header.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/arch/powerpc/util/header.c b/tools/perf/arch/powerpc/util/header.c
index 6138bde..5111e34 100644
--- a/tools/perf/arch/powerpc/util/header.c
+++ b/tools/perf/arch/powerpc/util/header.c
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <string.h>
#include <linux/stringify.h>
+#include "../../util/header.h"
#define mfspr(rn) ({unsigned long rval; \
asm volatile("mfspr %0," __stringify(rn) \
--
1.8.3.1