projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f416f2
)
perf pmu: Fix misleadingly indented assignment (whitespace)
author
Markus Trippelsdorf
<
[email protected]
>
Mon, 14 Dec 2015 15:44:40 +0000
(16:44 +0100)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 26 Jan 2016 14:52:42 +0000
(11:52 -0300)
One line in perf_pmu__parse_unit() is indented wrongly, leading to a
warning (=> error) from gcc 6:
util/pmu.c:156:3: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
sret = read(fd, alias->unit, UNIT_MAX_LEN);
^~~~
util/pmu.c:153:2: note: ...this 'if' clause, but it is not
if (fd == -1)
^~
Signed-off-by: Markus Trippelsdorf <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
Cc: Ben Hutchings <
[email protected]
>
Cc: Matt Fleming <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Fixes: 410136f5dd96 ("tools/perf/stat: Add event unit and scale support")
Link:
http://lkml.kernel.org/r/20151214154440.GC1409@x4
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/pmu.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/pmu.c
b/tools/perf/util/pmu.c
index b597bcc8fc781f4fa2c631044bddaab447b756e9..41a9c875e49281450637de5d1240382c4a3ee953 100644
(file)
--- a/
tools/perf/util/pmu.c
+++ b/
tools/perf/util/pmu.c
@@
-153,7
+153,7
@@
static int perf_pmu__parse_unit(struct perf_pmu_alias *alias, char *dir, char *n
if (fd == -1)
return -1;
-
sret = read(fd, alias->unit, UNIT_MAX_LEN);
+ sret = read(fd, alias->unit, UNIT_MAX_LEN);
if (sret < 0)
goto error;