summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/libpfm/files
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2016-06-29 16:08:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:57:25 +0100
commite8e8d412e7bafd38bdda7fea03f5db3b5e179baf (patch)
treebbd959bd2df1bdc28ac68b2e32c2e6d0199847b8 /meta/recipes-kernel/libpfm/files
parent23ae622a69d174216461d9570945e21a8aa865ff (diff)
downloadpoky-e8e8d412e7bafd38bdda7fea03f5db3b5e179baf.tar.gz
libpfm4: fix compile error
It fails to compile libpfm4 with misleading-indentation error: | syst_count.c:346:3: error: this 'for' clause does not guard... [-Werror=misleading-indentation] | for(c=cmin ; c < cmax; c++) | ^~~ Add clauses to fix it. (From OE-Core rev: 2857658ff5e477cb436cf2778a78fa9f192caab8) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/libpfm/files')
-rw-r--r--meta/recipes-kernel/libpfm/files/fix-misleading-indentation-error.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-kernel/libpfm/files/fix-misleading-indentation-error.patch b/meta/recipes-kernel/libpfm/files/fix-misleading-indentation-error.patch
new file mode 100644
index 0000000000..25d47ef125
--- /dev/null
+++ b/meta/recipes-kernel/libpfm/files/fix-misleading-indentation-error.patch
@@ -0,0 +1,38 @@
1Upstream-Status: Pending
2
3Fix compile error:
4
5| syst_count.c:346:3: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
6| for(c=cmin ; c < cmax; c++)
7| ^~~
8
9Signed-off-by: Kai Kang <kai.kang@windriver.com>
10---
11diff --git a/perf_examples/syst_count.c b/perf_examples/syst_count.c
12index 0d53078..2dfb9b9 100644
13--- a/perf_examples/syst_count.c
14+++ b/perf_examples/syst_count.c
15@@ -343,8 +343,9 @@ measure(void)
16
17 for (delay = 1 ; delay <= options.delay; delay++) {
18
19- for(c=cmin ; c < cmax; c++)
20- start_cpu(c);
21+ for(c=cmin ; c < cmax; c++) {
22+ start_cpu(c);
23+ }
24
25 if (0) {
26 tv.tv_sec = 0;
27@@ -353,8 +354,9 @@ measure(void)
28 } else
29 sleep(1);
30
31- for(c=cmin ; c < cmax; c++)
32- stop_cpu(c);
33+ for(c=cmin ; c < cmax; c++) {
34+ stop_cpu(c);
35+ }
36
37 for(c = cmin; c < cmax; c++) {
38 printf("# %'ds -----\n", delay);