Re: [PATCH] Fix perf build failure on glibc trunk

From: Markus Trippelsdorf
Date: Wed Apr 04 2012 - 05:55:52 EST


On 2012.04.04 at 11:46 +0200, Ingo Molnar wrote:
>
> * Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx> wrote:
>
> > On a system running glibc trunk perf doesn't build:
> >
> > CC builtin-sched.o
> > builtin-sched.c: In function âget_cpu_usage_nsec_parentâ:
> > builtin-sched.c:399:16: error: storage size of âruâ isnât known
> > builtin-sched.c:403:2: error: implicit declaration of function âgetrusageâ [-Werror=implicit-function-declaration]
> > builtin-sched.c:403:2: error: nested extern declaration of âgetrusageâ [-Werror=nested-externs]
> > builtin-sched.c:403:18: error: âRUSAGE_SELFâ undeclared (first use in this function)
> > builtin-sched.c:403:18: note: each undeclared identifier is reported only once for each function it appears in
> > builtin-sched.c:399:16: error: unused variable âruâ [-Werror=unused-variable]
> > cc1: all warnings being treated as errors
> >
> > Fix it by including sys/resource.h.
> > ---
> > tools/perf/builtin-sched.c | 1 +
> > 1 file changed, 1 insertion(+)
>
> Can I add:
>
> Signed-off-by: Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx>

Yes sure. Sorry.

--
Markus
--
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/