From: Masami Hiramatsu on
Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <acme(a)redhat.com>
>
> cc1: warnings being treated as errors
> util/probe-finder.c: In function 'find_line_range':
> util/probe-finder.c:172: warning: 'src' may be used uninitialized in this function
> make: *** [util/probe-finder.o] Error 1

Acked-by: Masami Hiramatsu <mhiramat(a)redhat.com>

Thank you!

>
> Cc: Frédéric Weisbecker <fweisbec(a)gmail.com>
> Cc: Masami Hiramatsu <mhiramat(a)redhat.com>
> Cc: Mike Galbraith <efault(a)gmx.de>
> Cc: Peter Zijlstra <a.p.zijlstra(a)chello.nl>
> Cc: Paul Mackerras <paulus(a)samba.org>
> Signed-off-by: Arnaldo Carvalho de Melo <acme(a)redhat.com>
> ---
> tools/perf/util/probe-finder.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
> index e77dc88..1e6c65e 100644
> --- a/tools/perf/util/probe-finder.c
> +++ b/tools/perf/util/probe-finder.c
> @@ -169,7 +169,7 @@ static const char *cu_find_realpath(Dwarf_Die *cu_die, const char *fname)
> {
> Dwarf_Files *files;
> size_t nfiles, i;
> - const char *src;
> + const char *src = NULL;
> int ret;
>
> if (!fname)

--
Masami Hiramatsu
e-mail: mhiramat(a)redhat.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/