From patchwork Thu Nov 16 09:22:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119034 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5361589qgn; Thu, 16 Nov 2017 01:29:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMbMB8+llmIzHx5SD4q6m8885f8fZhIFeZarFBBy4HI5+AZ2S10axflUyQSZ++mnaznHj50D X-Received: by 10.80.164.209 with SMTP id x17mr1820725edb.158.1510824563070; Thu, 16 Nov 2017 01:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510824563; cv=none; d=google.com; s=arc-20160816; b=uYfA6xrsuDirFLA1OBfQQ7UHe3AeoL7QVemKjdoz9YMM5BMktuNBEHk55YBVVzPGQO ujlX2olxXPIS3x/+gbqCBzgHDfZExIQfTtp0syp52/LfhB5g75FdmKnxAyNXoms0YO1l qON0ReuYBpjwhxxDu9qTHbwsc/JKlqUblkn6Jinpj8q3NVqZR6L2pyecCvQCnnevKhPi K9gjS9H2ZakwOJ76mUZCGgXHf5rua8DgrftdZAPnUesT6EuMNwmg1rT/0kJd8KBX4JMy QmbFOL3VW2h28tC+4hiiq12KK+0mAhK9XvIbSyL5fvZiUhmCgw289t4BRla2M2GXQm2d IUNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=8d4TiVTnOz8BYMQZiZtTKQ8DwKRrt5W1trQ3XStP5UQ=; b=EfY4JKUKkYLhLhvHcx3WQI8us6Qtt1N+Ftds0TfWJILFvJCC3g9RxiBvW7A6vHsliX mTUenv8rDqKBuzYheSAfHssHyd9HC7+v7hcDHQoZQc4dWnhXNYEq5UNs1X0wGUMqf+w0 8NVTPrLH8js4BUiJ3nWpQtUzqzHyEftEpGo7hTTds62Nh6F+PUREw54XacHQ+l8kZ9O2 TIMqi3mtl8AizPfYQpCZMZRv1soVI8x5HStZl1Nhxlmy+qC3Hsa7lXiZCciC6qHP0byu IQRpZBlRPD8E/DUIOqk0/HFM8STsqS46nhTelmrVIV7PzZ9FuWmKWyFOj0ngO7k+MNdq 4+hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id j3si818840edb.372.2017.11.16.01.29.22; Thu, 16 Nov 2017 01:29:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id A3E30C21DD7; Thu, 16 Nov 2017 09:23:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1311CC21DA0; Thu, 16 Nov 2017 09:23:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B5E28C21D7E; Thu, 16 Nov 2017 09:22:51 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 7944BC21D80 for ; Thu, 16 Nov 2017 09:22:48 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 66E7F2055E; Thu, 16 Nov 2017 10:22:47 +0100 (CET) Received: from localhost (unknown [185.94.189.187]) by mail.free-electrons.com (Postfix) with ESMTPSA id 1ABA82093B; Thu, 16 Nov 2017 10:22:37 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Thu, 16 Nov 2017 10:22:23 +0100 Message-Id: <20171116092231.27740-3-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171116092231.27740-1-maxime.ripard@free-electrons.com> References: <20171116092231.27740-1-maxime.ripard@free-electrons.com> Cc: Andre Przywara , agraf@suse.de, u-boot@lists.denx.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [RFC PATCH 02/10] env: Make env_driver_lookup_default private X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" No that there's no users of env_driver_lookup_default outside of env/env.c, we can mark that function static and remove it from the environment header. Signed-off-by: Maxime Ripard Reviewed-by: Lukasz Majewski --- env/env.c | 2 +- include/environment.h | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/env/env.c b/env/env.c index 84c12e27bc3f..094538ff5b62 100644 --- a/env/env.c +++ b/env/env.c @@ -52,7 +52,7 @@ static enum env_location env_get_default_location(void) return ENVL_UNKNOWN; } -struct env_driver *env_driver_lookup_default(void) +static struct env_driver *env_driver_lookup_default(void) { enum env_location loc = env_get_default_location(); struct env_driver *drv; diff --git a/include/environment.h b/include/environment.h index 7b9821638960..226e3ef2d23a 100644 --- a/include/environment.h +++ b/include/environment.h @@ -302,13 +302,6 @@ int env_export(env_t *env_out); int env_import_redund(const char *buf1, const char *buf2); #endif -/** - * env_driver_lookup_default() - Look up the default environment driver - * - * @return pointer to driver, or NULL if none (which should not happen) - */ -struct env_driver *env_driver_lookup_default(void); - /** * env_get_char() - Get a character from the early environment *