Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933272AbbDNWx6 (ORCPT ); Tue, 14 Apr 2015 18:53:58 -0400 Received: from mail.kernel.org ([198.145.29.136]:46765 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933237AbbDNWxl (ORCPT ); Tue, 14 Apr 2015 18:53:41 -0400 Date: Tue, 14 Apr 2015 19:53:36 -0300 From: Arnaldo Carvalho de Melo To: David Ahern Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf kmem: Fix compiles on RHEL6/OL6 Message-ID: <20150414225336.GO16027@kernel.org> References: <1429033773-31383-1-git-send-email-david.ahern@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1429033773-31383-1-git-send-email-david.ahern@oracle.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1278 Lines: 24 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/