Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1305109rwi; Thu, 13 Oct 2022 11:46:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5oKZ5AAd664fIx11mJOEJwKIcF0XkLa3o75Mjnu+zuLewF02IAfZ9cuAx0onnkTmuvvYmz X-Received: by 2002:a17:90b:264d:b0:20d:3935:778 with SMTP id pa13-20020a17090b264d00b0020d39350778mr12430602pjb.64.1665686775095; Thu, 13 Oct 2022 11:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665686775; cv=none; d=google.com; s=arc-20160816; b=iRC7xq4WYuDY8YwLdgQWf9NybWL/k1gXzPY+DcBTx2e4cg1i+U4bGx5i60fTacKn06 ZRL2Eq4BSgZafzI15ZTnrh2ZiACZrP7z8DQLl8exWEYghJvLKXkuwX9w3nBHjrXR35Ki c3yPdUfFeQmd6/PJWaoGEFQL4Mcvat9CWYac1mXnf3FEvMlzY1DWQN+CCp2NEK0Sd43x EvD7ZjT0AUaMO7ArFrhIPxuLs5hJgkYKufO58D+ttofWy712ZTUlwuIxaGeh0tNOIAuE HjrhctJ/UqpdeulgU29asS0lO5cdPwvGy2gbMbMHBTpc/jLoyAP7Lp+XPsIGh8zhoG42 4Msw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=csH+cvpmjVmZWRTzhscL+u++qtBxiBCq2ZVhpR8RIG0=; b=pzFpiX04GLiu3Kr6v1WMjqbiAAUOA7f9k5provEvJ8Ujy7MAlHSWPpjWZ+HmauI386 4D8ZbSO+qycQukhn7JF5RE+cRTpFZs+CIq2L/ROMax6b/SGP4J9IFszEehOUjnUBm/J2 dA7WFRnKVyVDNU1Kb1p2/3/Vor+ZsadnJ6Isc0CrRvJ1miiJdHAFWCQcTp+PbTfI+McL MXM5l+L/20UOPE0dgjy1PS49FAcElXj13KIoMYIgtj4HX8Nr/jGY2Vy2seSgJBS5btnk R7boxpRruXk4jCPuvrWj62BFS4MHz7P8T2RSlP9UfAgTXtsmJwZSPAuBM3bTRRWyzvn0 +QAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z+KRK9Un; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nk5-20020a17090b194500b00202b984842csi320500pjb.35.2022.10.13.11.46.01; Thu, 13 Oct 2022 11:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z+KRK9Un; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229802AbiJMRxQ (ORCPT + 99 others); Thu, 13 Oct 2022 13:53:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbiJMRxI (ORCPT ); Thu, 13 Oct 2022 13:53:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E0A15201B; Thu, 13 Oct 2022 10:52:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E897D618F8; Thu, 13 Oct 2022 17:52:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06A0CC43140; Thu, 13 Oct 2022 17:52:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665683576; bh=CRJNGRjkpflGVzVE5K8nb5uIXUCKPhy0qiAB2mRSc9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z+KRK9UnpqAMcKLZT59J7Yut8A510cScklAwUOwtCtPae/qs2g0OO2Veta974A4Wd OkS6Do6vP9xipw+tj30ZdLNZNZxMpUeA2dIquqV/irmNcFytf2wvSCsyLoKytXe+AH P3uALPycOIPHtW856Z+4T7mvWc9Cgpu987soXNsk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Alexey Dobriyan (SK hynix)" , Namhyung Kim , Arnaldo Carvalho de Melo , Florian Fainelli Subject: [PATCH 5.4 02/38] perf tools: Fixup get_current_dir_name() compilation Date: Thu, 13 Oct 2022 19:52:03 +0200 Message-Id: <20221013175144.341273264@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013175144.245431424@linuxfoundation.org> References: <20221013175144.245431424@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexey Dobriyan commit 128dbd78bd673f9edbc4413072b23efb6657feb0 upstream. strdup() prototype doesn't live in stdlib.h . Add limits.h for PATH_MAX definition as well. This fixes the build on Android. Signed-off-by: Alexey Dobriyan (SK hynix) Acked-by: Namhyung Kim Link: http://lore.kernel.org/lkml/YRukaQbrgDWhiwGr@localhost.localdomain Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Florian Fainelli Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/get_current_dir_name.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/tools/perf/util/get_current_dir_name.c +++ b/tools/perf/util/get_current_dir_name.c @@ -3,8 +3,9 @@ // #ifndef HAVE_GET_CURRENT_DIR_NAME #include "get_current_dir_name.h" +#include +#include #include -#include /* Android's 'bionic' library, for one, doesn't have this */