Re: [PATCH] perf probe: Fix compiles due to declarations using perf_probe_point

From: Arnaldo Carvalho de Melo
Date: Wed Mar 11 2015 - 10:40:48 EST


Em Wed, Mar 11, 2015 at 10:36:20AM -0400, David Ahern escreveu:
> perf fails to build with gcc "(GCC) 4.4.7 20120313 (Red Hat 4.4.7-4.0.9)"
> (a.k.a., RHEL6 / CentOS 6 / OL 6):
>
> cc1: warnings being treated as errors
> util/probe-event.c: In function âget_alternative_line_rangeâ:
> util/probe-event.c:359: error: missing initializer
> util/probe-event.c:359: error: (near initialization for âpp.fileâ)
> util/probe-event.c:359: error: missing initializer
> util/probe-event.c:359: error: (near initialization for âresult.functionâ)
>
> Fix by bringing in initializers to declaration.

Thanks, applied to perf/core.

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/