Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751890AbbDXAiy (ORCPT ); Thu, 23 Apr 2015 20:38:54 -0400 Received: from mail-qc0-f175.google.com ([209.85.216.175]:36262 "EHLO mail-qc0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751701AbbDXAiu convert rfc822-to-8bit (ORCPT ); Thu, 23 Apr 2015 20:38:50 -0400 MIME-Version: 1.0 Date: Thu, 23 Apr 2015 17:38:49 -0700 Message-ID: Subject: =?UTF-8?Q?4=2E0=2Drc1_perf_build_error_=22builtin=2Dkmem=2Ec=3A322=3A_error=3A?= =?UTF-8?Q?_declaration_of_=E2=80=98stat=E2=80=99_shadows_a_global_declaration=22?= From: Vinson Lee To: Namhyung Kim , Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo Cc: linux-perf-users@vger.kernel.org, LKML Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1177 Lines: 27 Hi. 4.0-rc1 commit 0d68bc92c48167130b61b449f08be27dc862dba2 "perf kmem: Analyze page allocator events also" introduced a build error with older toolchains. For example, this build errors occurs on CentOS 6. CC builtin-kmem.o 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 /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 Cheers, Vinson -- 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/