All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: David Ahern <david.ahern@oracle.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf kmem: Fix compiles on RHEL6/OL6
Date: Tue, 14 Apr 2015 19:53:36 -0300	[thread overview]
Message-ID: <20150414225336.GO16027@kernel.org> (raw)
In-Reply-To: <1429033773-31383-1-git-send-email-david.ahern@oracle.com>

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

  reply	other threads:[~2015-04-14 22:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-14 17:49 [PATCH] perf kmem: Fix compiles on RHEL6/OL6 David Ahern
2015-04-14 22:53 ` Arnaldo Carvalho de Melo [this message]
2015-05-01 10:14 ` [tip:perf/urgent] " tip-bot for David Ahern
2015-05-06  2:54 ` [tip:perf/core] " tip-bot for David Ahern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150414225336.GO16027@kernel.org \
    --to=acme@kernel.org \
    --cc=david.ahern@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.