Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932608AbbGGSBd (ORCPT ); Tue, 7 Jul 2015 14:01:33 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:32880 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932315AbbGGSB0 convert rfc822-to-8bit (ORCPT ); Tue, 7 Jul 2015 14:01:26 -0400 MIME-Version: 1.0 Date: Tue, 7 Jul 2015 11:01:25 -0700 Message-ID: Subject: =?UTF-8?Q?4=2E2=2Drc2_perf_build_error_builtin=2Dstat=2Ec=3A346=3A_error=3A_?= =?UTF-8?Q?declaration_of_=E2=80=98close=E2=80=99_shadows_a_global_declaration?= From: Vinson Lee To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Jiri Olsa Cc: LKML , linux-perf-users@vger.kernel.org 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: 714 Lines: 21 Hi. 4.2-rc1 commit 106a94a0f8c207ef4113ce7e32f34a00b3b174e7 "perf stat: Introduce read_counters function" introduced a build error with older toolchains. This is the build error on CentOS 6. CC builtin-stat.o cc1: warnings being treated as errors builtin-stat.c: In function ‘read_counters’: builtin-stat.c:346: error: declaration of ‘close’ shadows a global declaration /usr/include/unistd.h:350: 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/