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:
a41f3c8
)
perf kmem: Fix compiler warning about may be accessing uninitialized variable
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Mon, 11 May 2015 14:41:17 +0000
(11:41 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 12 May 2015 12:59:47 +0000
(09:59 -0300)
The last argument to strtok_r doesn't need to be initialized, its just a
placeholder to make this routine reentrant, but gcc doesn't know about
that and complains, breaking the build, fix it by setting it to NULL.
Fixes: 0e11115644b3 ("perf kmem: Print gfp flags in human readable string")
Cc: Adrian Hunter <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Don Zickus <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Link:
http://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/builtin-kmem.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-kmem.c
b/tools/perf/builtin-kmem.c
index e0173c7f17b1c1a9ef4b6b98350161272521bbaa..254614b10c4a3bdb33c01f2c0f87d6da22d0315e 100644
(file)
--- a/
tools/perf/builtin-kmem.c
+++ b/
tools/perf/builtin-kmem.c
@@
-713,7
+713,7
@@
static int parse_gfp_flags(struct perf_evsel *evsel, struct perf_sample *sample,
.size = sample->raw_size,
};
struct trace_seq seq;
- char *str, *pos;
+ char *str, *pos
= NULL
;
if (nr_gfps) {
struct gfp_flag key = {