Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2482251pxb; Mon, 18 Jan 2021 20:43:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCkGHwoJlKanK0iW03fpw4fGtM+b85n0lhDRUgppTghPyYremvB39AA/7sq6wvxntUHwRv X-Received: by 2002:a50:fc8c:: with SMTP id f12mr1918618edq.225.1611031380419; Mon, 18 Jan 2021 20:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611031380; cv=none; d=google.com; s=arc-20160816; b=UClHgISzmfAU3kg38hjSM0s24qC6JxiGgmaRug3DyzymLy/pHMP9YmHRPX9hcRWXLd SglOKtBJdAvMbJHHAVyekufluTGY27WBg0IAiBYCj8mZxRnkUHKbHhU/EeOlr2dHW8E0 w5PUlamUkd7Kp7XJl1+HMqRt2CEBenrihvKrHmWG9ys/AgXGBhp0l0Z3FEfvvj3jlglO FGuiMe1WtjE7Epqs89mvPoHCNBqDuX0gPxHJQFXgMWK1Uc8qWCmFIkOq2zMjrjFykQBz hg8JIczxs4AAxnfNM/DiWwWnx1DA7eX5guDU8Ny/y/C2MpgEazA2MNC1263B2pOHHmwL 3n0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DOlzWdwGQQpEyM7M2VmoPLfkdzgNLSRzuJ86/aTL4/k=; b=mYboxzGwZ4z3NITTMTTPEQnzLn3Ssun9eKOPdJCnmw1UuQcNRWtsnTs4t6nSeCU3QU 2U5/AAOkOT5OqiEPvZ1GC8BdAoXbfc3Vee+arP3ZOqJ2xgy8gXo+QfbnSq2GQLYsqSGz jYqoaytPayXHyo1TE26E/Qgd4UcsQte2cn9mip6o5/BmrSHGc08GfSkx66dtsmda8faS jJ/peLWpESOArY71CLV2rH1LTYEaY0WJG0uu6InYBIrGqwxO90Icsrnw9x38aEGnx7wq VSGXWNo9cEB46Fp1iTWsMl2AvIC/yVRAzAsc95pw+pZQtauZMj6z49OGaxI2LdRHyKZK Z6Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uCbPJZ9P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si8301502edu.93.2021.01.18.20.42.36; Mon, 18 Jan 2021 20:43:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uCbPJZ9P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405967AbhARPxB (ORCPT + 99 others); Mon, 18 Jan 2021 10:53:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:32822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406021AbhARPwh (ORCPT ); Mon, 18 Jan 2021 10:52:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AD83F22AAA; Mon, 18 Jan 2021 15:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610985116; bh=AB8E4rNT4/olxwU47FHDvrZY5FoQsL+/jFIyw1bY5kE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uCbPJZ9PMqQ+OkD6vMBRT9gJxBC+/ttZdYP0DsVRDVfLWr9fS7NnblCAlMiYwblFM 7713QXen8hz42WcGwsLQ4tSicRXRc4injmdMh+ZFvv1ESPza6aX7Inxv45rHsOR0la f/EAIbaRS6eSnrRSrlg+Evfq6BKzQzcKzkmX4yyPqYxFc+/EeBzrYeOkZGG+pC7WHB qDSv73qPL5arEj6cELeCtskGDqLpYjZUThQX9qbDugmKEIoiW3Ed3y7EgFqmTHVmmL N3sAufA7wIF/YevT3X295KBj7sURCYBLvOH5fzL9qaSBmYaMS4h2EydvN709mapVkx sUjwk0AzGvNqQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id ACEC140CE2; Mon, 18 Jan 2021 12:51:53 -0300 (-03) Date: Mon, 18 Jan 2021 12:51:53 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian , Alexei Budankov Subject: Re: [PATCH 01/22] perf tools: Make perf_config_from_file static Message-ID: <20210118155153.GA12699@kernel.org> References: <20210102220441.794923-1-jolsa@kernel.org> <20210102220441.794923-2-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210102220441.794923-2-jolsa@kernel.org> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, Jan 02, 2021 at 11:04:20PM +0100, Jiri Olsa escreveu: > It's not used outside config.c object. Thanks, applied. > Signed-off-by: Jiri Olsa > --- > tools/perf/util/config.c | 2 +- > tools/perf/util/config.h | 1 - > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c > index 6969f82843ee..20be0504fb95 100644 > --- a/tools/perf/util/config.c > +++ b/tools/perf/util/config.c > @@ -489,7 +489,7 @@ int perf_default_config(const char *var, const char *value, > return 0; > } > > -int perf_config_from_file(config_fn_t fn, const char *filename, void *data) > +static int perf_config_from_file(config_fn_t fn, const char *filename, void *data) > { > int ret; > FILE *f = fopen(filename, "r"); > diff --git a/tools/perf/util/config.h b/tools/perf/util/config.h > index 8c881e3a3ec3..2f753b2a034b 100644 > --- a/tools/perf/util/config.h > +++ b/tools/perf/util/config.h > @@ -27,7 +27,6 @@ extern const char *config_exclusive_filename; > > typedef int (*config_fn_t)(const char *, const char *, void *); > > -int perf_config_from_file(config_fn_t fn, const char *filename, void *data); > int perf_default_config(const char *, const char *, void *); > int perf_config(config_fn_t fn, void *); > int perf_config_int(int *dest, const char *, const char *); > -- > 2.26.2 > -- - Arnaldo