Re: [PATCH] perf kmem: Fix compiles on RHEL6/OL6

From: Arnaldo Carvalho de Melo
Date: Tue Apr 14 2015 - 18:54:01 EST


Em Tue, Apr 14, 2015 at 01:49:33PM -0400, David Ahern escreveu:
> 0d68bc92c48 breaks compiles on RHEL6/OL6:
> cc1: warnings being treated as errors
> builtin-kmem.c: In function âsearch_page_alloc_statâ:
> builtin-kmem.c:322: error: declaration of âstatâ shadows a global declaration
> node = &parent->rb_left;
> /usr/include/sys/stat.h:455: error: shadowed declaration is here
> builtin-kmem.c: In function âperf_evsel__process_page_alloc_eventâ:
> builtin-kmem.c:378: error: declaration of âstatâ shadows a global declaration
> /usr/include/sys/stat.h:455: error: shadowed declaration is here
> builtin-kmem.c: In function âperf_evsel__process_page_free_eventâ:
> builtin-kmem.c:431: error: declaration of âstatâ shadows a global declaration
> /usr/include/sys/stat.h:455: error: shadowed declaration is here
>
> Rename local variable to pstat to avoid the name conflict.

Thanks, applied, fixed the build on Fedora14 as well.

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