From patchwork Tue Nov 28 10:24:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119823 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2911646edl; Tue, 28 Nov 2017 02:30:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMa9nrKicZ6a+gWqmDjAe8ocMugi7FVP9Ynr1xd6CSyAPaAEwJLZQeAeQexMFCBTHIXAzkzS X-Received: by 10.80.137.106 with SMTP id f39mr2047184edf.148.1511865030999; Tue, 28 Nov 2017 02:30:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511865030; cv=none; d=google.com; s=arc-20160816; b=IL4W/4s8EVFQEsExRG1SaTVZ1cR0aDYZKM94KSKAMJI5uayQJyiuMdjpa9enbuDN7y /ZeVONpvFcBLiKRQkB5/mHkk5poXQlHGzgqVhCYx6pQWtdttSsBSoZ7LKRyKkBGxUB6E Kad/6Gs+LXqB3e5nK1Il43dVtrBkNSW8y3gKllQ1uf2h8IijdTfEGIbomdHKH1kBL0ZP Upu6Pe+Uo0RwRHcWS3W435KFz7qPWIShhGc8N9yfNL33hKAdQtLZ9yEJQEU7GqD28EVG J8I2Y3pHogFEsX81zguDzVhaIL9HDNhl0tRkmLa25nzLN6O4KHRwcFf1Vq6raioAMez1 k0qQ== 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:references :in-reply-to:message-id:date:to:from:arc-authentication-results; bh=Tk4c+9c44IniNaroD9Ed+MAqrFlPlbO5C7WoeZea3Fk=; b=JJ4MnAJu4J8+mAJjfDE2evjwo+mXcyI9J2Owga9bxctwWxREQYd9MnZzTnsYJ4NDO0 VMve7rIlrew5GUFfNkd9SBjRG7Cyxzjg0wS9Uc3VnnS9cTGmg2Q4kw3OxhfRqmCP4CbY 88hZdNq0elXAqlVMuI1oGSonsii7gVXi4wbAqwvQ8VcyMPygr2v6pYtC60aHvvMFskuv hbho+OEZVJ4o6NYMRgEQbO18KkCGjqS4NLBP1BbIeC5C9Vi/0y2gHUMfkDmc4fXYAA4I f+z7cR2VWyxr3hpEMVStP2ivlcojRtpY5ot7qvS8grXof3HSRg8F0eJNmatOMLHjZNCD Nj5A== 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 s6si1048261edc.399.2017.11.28.02.30.30; Tue, 28 Nov 2017 02:30:30 -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 8B92BC21DF3; Tue, 28 Nov 2017 10:28:18 +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 2E5D0C21E74; Tue, 28 Nov 2017 10:25:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7F627C21E70; Tue, 28 Nov 2017 10:25:02 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id D7228C21DDB for ; Tue, 28 Nov 2017 10:24:56 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 36E642074B; Tue, 28 Nov 2017 11:24:56 +0100 (CET) Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 0C7DA20380; Tue, 28 Nov 2017 11:24:56 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 28 Nov 2017 11:24:47 +0100 Message-Id: <537a3581d52c026ce964762a38cf65faed7c175c.1511864667.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Cc: Thomas Petazzoni , u-boot@lists.denx.de, Andre Przywara , agraf@suse.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [PATCH 12/14] env: Mark env_get_location as weak 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" Allow boards and architectures to override the default environment lookup code by overriding env_get_location. Reviewed-by: Lukasz Majewski Signed-off-by: Maxime Ripard Reviewed-by: Andre Przywara --- env/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/env.c b/env/env.c index b4d8886e7a69..9b8b38cf3c2b 100644 --- a/env/env.c +++ b/env/env.c @@ -62,7 +62,7 @@ static enum env_location env_locations[] = { static enum env_location env_load_location; -static enum env_location env_get_location(enum env_operation op, int prio) +__weak enum env_location env_get_location(enum env_operation op, int prio) { switch (op) { case ENVO_GET_CHAR: