Message ID | 20190905082133.18996-4-takahiro.akashi@linaro.org |
---|---|
State | Changes Requested, archived |
Delegated to: | Heinrich Schuchardt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="TNhN6Dy7"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46PDFn0d3gz9sBF for <incoming@patchwork.ozlabs.org>; Thu, 5 Sep 2019 18:22:36 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B55C2C21D9A; Thu, 5 Sep 2019 08:22:25 +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=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID 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 748AAC21E29; Thu, 5 Sep 2019 08:20:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 73E86C21E13; Thu, 5 Sep 2019 08:20:31 +0000 (UTC) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by lists.denx.de (Postfix) with ESMTPS id 9414AC21DAF for <u-boot@lists.denx.de>; Thu, 5 Sep 2019 08:20:03 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id q10so1259488pfl.0 for <u-boot@lists.denx.de>; Thu, 05 Sep 2019 01:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3ZyDprnNWg+SnYWEl+uYzO/elMGecnA9Mhye+SK7k1A=; b=TNhN6Dy7uo+XCcF202hfMzjiVlJt+nCuv8ZtPS/Qc8z5Uf2/uHya5p8yYMAIpZNMZj OMIenAGZORQ17rq2Id+iO7jzyzbd9AX1c+tJI1Y+N49HacXbfmjkpWztTy1dhYOW2B1b ZfmBmB9tqnOy1zorr7Rn3IrVWQjkbPnhbt6SZcJRRB7Bmcg53yGuDb9SQoeeGcbeE8jQ TYSiReHXZ6sIrfTcNQzMrhgaRvCI2TziPvTaIRP5oEPnfUXsdTi30WWZACjoGnrQKoG0 xsvmrF9yfaeUiyC+S3nLeDJwikU9jzb0X+5/g+SAyc1IDBdVLDcJkUQ/5tx9Lp5vaH9b 8fqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3ZyDprnNWg+SnYWEl+uYzO/elMGecnA9Mhye+SK7k1A=; b=FmePvTx1LNis4GXTTcUT/wKf6Kapm2PYGX/vkc6ZV6s17MWVqfOZrP97gbjB1HC4L0 YcZUcOYnb/j3PrMfqTEjcRNYPs+Kjoefh9pkzdE+ebBOkZL0uoQwcv1jLizNkaB/P+jR FdrBBOThXQ0sxBkTTml0uWW0SIuHlVJMoaB+OejAUby1AW8D7T8G1oIiZDMmT/g48A9H We0KCeRJwAPiOKRYvAPntoCrFNbBEabetQg8M09Tg3Fw6W0rpBGoWiaet+SNx4l3n58g +vAytEA93u8V/dqKtmIpRCajFnMElqtJBTU2HktZmv6XqhXzYfILBE9KLRB18s6MNZ0a NFlg== X-Gm-Message-State: APjAAAVsqFe8tn/JoieQ1laOna2tYk6DBjJhUPMJ2wNayYopic3DfyT8 wTPfbequVUT9f2qIlB2CnZ2U5w== X-Google-Smtp-Source: APXvYqzyEo7CcNPE5J9eSZVD4EXitOPO2w7veK63z6QPVXE9RkKZj/mYLOLRGqIzkU6FczN9w4twjw== X-Received: by 2002:a65:644b:: with SMTP id s11mr2068308pgv.305.1567671602154; Thu, 05 Sep 2019 01:20:02 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id g14sm1433891pfo.133.2019.09.05.01.20.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Sep 2019 01:20:01 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: trini@konsulko.com, xypron.glpk@gmx.de, agraf@csgraf.de, wd@denx.de Date: Thu, 5 Sep 2019 17:21:17 +0900 Message-Id: <20190905082133.18996-4-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190905082133.18996-1-takahiro.akashi@linaro.org> References: <20190905082133.18996-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v5 03/19] env: nowhere: rework with new env interfaces X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
efi_loader: non-volatile variables support
|
expand
|
diff --git a/env/nowhere.c b/env/nowhere.c index f5b0a17652c5..1a4d40f4a2de 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -19,12 +19,11 @@ DECLARE_GLOBAL_DATA_PTR; * Because we only ever have the default environment available we must mark * it as invalid. */ -static int env_nowhere_init(void) +static int env_nowhere_init(struct env_context *ctx) { - gd->env_addr = (ulong)&default_environment[0]; - gd->env_valid = ENV_INVALID; + /* Just a placeholder */ - return 0; + return -ENOENT; } U_BOOT_ENV_LOCATION(nowhere) = {
Make this function a place holder. Managing default values, in particular for U-Boot environment, should go into context-specific initialization. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- env/nowhere.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)