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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/