• David Ahern's avatar
    perf kmem: Fix compiles on RHEL6/OL6 · 6b1a2752
    David Ahern authored
    0d68bc92 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.
    Signed-off-by: default avatarDavid Ahern <david.ahern@oracle.com>
    Link: http://lkml.kernel.org/r/1429033773-31383-1-git-send-email-david.ahern@oracle.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    6b1a2752
builtin-kmem.c 27.8 KB