Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3330046imu; Sun, 11 Nov 2018 12:31:03 -0800 (PST) X-Google-Smtp-Source: AJdET5c92LkNYuaddfOdZEwtWLr5Fb0EJW/Q2l924SV0T+qOaBsZ0AK3Lqsm3oXsHDmWhhXP6TRQ X-Received: by 2002:a63:9501:: with SMTP id p1mr15193338pgd.149.1541968262999; Sun, 11 Nov 2018 12:31:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968262; cv=none; d=google.com; s=arc-20160816; b=ayiYNcs8OwQTd6K6I8nrkf3jgH0/F+lQ7+ep6U3kuxpgTVk1QhDrOhmDvnEFJVut0v TffN0CnzvGX3fT/T5hOItRsnMY27IsNGeXatBvqKwR8bvxCHNyQFFCvsi4fjXSYvaUF5 +79J4XNgDFQCEyC3RYJu+AaTgBXoBuPoDGeHOc1gchSrnK0PS7wnUproYTMiQUONZ0mM 5RF/TIf5ckXZOPBEkRvDR7gaVUlFyvUAJcbByd2Xdfs9SP4FIsRxHcpYcTC4to7RmVV0 x9n4/NsJtU11b6bLGPqkFVcPx7lx6Leoxk3cIi/qJBDmqLngEOu9w4N2IC6WwUBD4jIy CEWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=PXLPf5Z3KSzur+YOPQ0IfchcxOx+rzt95GvAfTHYUjg=; b=eIR/ZS648bqrEHsIB3O09m+z0VV/kDPIa1gPyvtdyBDOhOJe0Cme/NhwOfO3z79Qyk 42beSZuUzIE3+4vpSw1BNjvIsdcqdvLyg+dwHoIwrqWHX/uk/s3phzhZ7cC9mz+Hnsok j3LFXanAOgC4UQj7zwCER1XWcD7xVPUswGO51oJPDQ3Q0fB5AWi0Ds8gExi9TXxF9ALH UpmOn3Fe2/zkO4jO+VgiwAD4rZ0TIZjb7u7ifQtp/Gbi90gL6RZP04ziHuS+G8ROgIhE Asg6gVi9iJRloBgQ+fvQLQ5Rdf/d7KtXdzL9C7rk6vp9Y3RjMkfzs10eNhsrSMy3WC47 OaUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17-v6si14472269pls.302.2018.11.11.12.30.48; Sun, 11 Nov 2018 12:31:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730455AbeKLFsV (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:21 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50356 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730401AbeKLFsT (ORCPT ); Mon, 12 Nov 2018 00:48:19 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsf-0000lK-B9; Sun, 11 Nov 2018 19:58:49 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsa-0001su-LH; Sun, 11 Nov 2018 19:58:44 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Ingo Molnar" , "Peter Zijlstra" , "Arnaldo Carvalho de Melo" , "Paul Mackerras" , "Chanho Park" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 353/366] perf tools: define _DEFAULT_SOURCE for glibc_2.20 In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Chanho Park commit 512fe365373b9c95a70b4b6357503ee74d27214f upstream. _BSD_SOURCE was deprecated in favour of _DEFAULT_SOURCE since glibc 2.20[1]. To avoid build warning on glibc2.20, _DEFAULT_SOURCE should also be defined. [1]: https://sourceware.org/glibc/wiki/Release/2.20 Signed-off-by: Chanho Park Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1410487817-13403-1-git-send-email-chanho61.park@samsung.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Ben Hutchings --- tools/perf/util/util.h | 2 ++ 1 file changed, 2 insertions(+) --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -39,6 +39,8 @@ #define _ALL_SOURCE 1 #define _BSD_SOURCE 1 +/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */ +#define _DEFAULT_SOURCE 1 #define HAS_BOOL #include