merged

Bruce

On 4/30/2018 5:24 AM, Daniel Dragomir wrote:
PRIx64 macro was not defined and this error occours:

| util/cs-etm.c:1264:40: error: expected '}' before 'PRIx64'
|    [CS_ETM_MAGIC] = "   Magic number  %"PRIx64"\n",
        |                                         ^~~~~~

This was introduced by commit 362f8417b1cc ("opencsd: This is a
Backport of the Following") from axxia branches. This backport was
done in 4.9 Kernel where inttypes.h was included through
tools/perf/util/util.h.

After porting in 4.12 Kernel, this error occours because starting with
commit c3dca1a1c0ec ("perf tools: Remove PRI[xu] macros from perf.h"),
inttypes.h was not included in util.h.

So, include inttypes.h directly in cs-etm.c to fix this.

Signed-off-by: Quanyang Wang <quanyang.w...@windriver.com>
Signed-off-by: Daniel Dragomir <daniel.drago...@windriver.com>
---
  tools/perf/util/cs-etm.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
index d48b9a4..d34d7d5 100644
--- a/tools/perf/util/cs-etm.c
+++ b/tools/perf/util/cs-etm.c
@@ -37,6 +37,7 @@
  #include "debug.h"
#include <stdlib.h>
+#include <inttypes.h>
#define KiB(x) ((x) * 1024)
  #define MiB(x) ((x) * 1024 * 1024)

--
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to