From patchwork Fri Nov 13 04:14:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 324262 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp898881ils; Thu, 12 Nov 2020 20:16:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3DlyvtgeitgTyaYpcsM0PlAHc+LURkVaI1nQBcn55gvMPaR8SnR3P+DI8s2RbvCBOikVC X-Received: by 2002:a05:6402:1f1:: with SMTP id i17mr641122edy.60.1605241005487; Thu, 12 Nov 2020 20:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605241005; cv=none; d=google.com; s=arc-20160816; b=YovvgvYpEJWdx69Vq+fMCoWhXgX7bUfJ5RYFgjQdvg4tQY1IZz3z4hH3v22h+s1YRG QcIA0knj6zcVPenvWAN9Pbe6b7rlsx3v2mbIBYIT4zGXIh+jOkIOzjlHBPcBWIcEo4uV rPKfFnUsInB1v9tbiI9GFFbyDH44j0glxy86F9+kOA5dAEeSpkWsa9Uva5nCQI+2N/Vs 1pdVo2wztRfDaWk9kHyIV29svriDzciS3a5a5SmFiGEwF3PZtOzJKAySsA8Cm84cGlMP 9WdTfur/eMz5bUxXeT8pSkYLgRwEWsglcQt/iB3p9R7X3X5QpDekwcoRY7tQiolBhLVW buaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=K4b53TTK7B9Kn1SFP1JixXFzUAeCc7sItrVkDCURrFA=; b=nM6K++3AziMGF+GHby0y4Txsy8qzUYQdzl80IGKzEKd+wR5USMrXOo1f6Vday8CiHo 0GA5H+Nufjx2rvlQIuY0bn8SLfjMRTH4W1xZwcxAmAlf9c5HnjIR/Iak/RGBIQWpaZwO nVGEz1QC5RJdM5ZjIJAZZrBLalZ1FW7mBa/Wg/1PygXY7Ht5mvhw+hr53BVidcdKgCd4 nmlaLuFn65hlfTSluFqC925PxHJY4/rIJM62dHS3kpAqRohmial2FMIZFbL6A7TdgoZu dgEs/rl/8QbhdumVsfjY3GHnKdM261OHk0hdUNPNabf7vTUIdc2kkInB+FBj1nCl5QX3 crag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D6OR4CEd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id dn20si5692909ejc.324.2020.11.12.20.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 20:16:45 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D6OR4CEd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5BD2282588; Fri, 13 Nov 2020 05:16:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="D6OR4CEd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F4418255C; Fri, 13 Nov 2020 05:15:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7E9F68253B for ; Fri, 13 Nov 2020 05:15:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pl1-x643.google.com with SMTP id g11so3918273pll.13 for ; Thu, 12 Nov 2020 20:15:43 -0800 (PST) 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=K4b53TTK7B9Kn1SFP1JixXFzUAeCc7sItrVkDCURrFA=; b=D6OR4CEdL42OpOb5Dd+1HYEyo25quqLEjCR+nM9sH5JgaTdVxuRNZQv4ADYhInH15i dgZGrsYONErdG0Ukr1RQc0tUBuBoBioax9uWcBf4e3foGeLZzh4PPbnwMmoMwSjgS9c3 mPEstX7JmDyXjzncazt3kPGPUbolUhxJhUsKZSgQrmJ3EJvrzdYwwQzvcq7baEqR1im9 gTyN33ZxcUMbfdGvBzjL0Lcg5oaHBM2hJwgjVVkeUTSL6MZCnjTTJSyJoPVqYoH0WRYV 5MY9gHIVu9j1vgdzSiG9lQ8/3tQw1+92iaWu+T6KRBvAdnoXO4oHsk6i/zEpOlAOckyc XGDQ== 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=K4b53TTK7B9Kn1SFP1JixXFzUAeCc7sItrVkDCURrFA=; b=CnlzsXDZpPzIViU9tdxSn75Iv0sG2EN+0Tysr2jkvneIwde1dWVJjZdBTiZSyIai3k /oHz818kxf20mq2rosdDNwsa0Z9Behpv//7l9kQDVLW6tSOmJye6IuxW7rP/22san3T1 H/UHE0ugf0h9AzFURqxKGuPrPFvljkKa7bbNmpQSXpH6gBK+gzvIItE/FSqf2ZkDvlHw ugxj+gSqY1QW5P4ogvVhT3Z+6pSK+xVGSZhIDLiYhYTkiuffYv8ikp2Z/grxuokwODY0 CA42a4IMHi8rzrFQIucjovXhSLCJPBFI292/bJ7duAuxxhFlxx/StUJL/BR4rQU5V426 M4nw== X-Gm-Message-State: AOAM531pNBUqvV4kTt6PBAUP05v8ujR9eroynb/a4skT+4/dd+jinzOM hVGVhRtcNHPfcoDB7P3eov6vpg== X-Received: by 2002:a17:902:bf48:b029:d8:abd5:7670 with SMTP id u8-20020a170902bf48b02900d8abd57670mr512091pls.85.1605240941935; Thu, 12 Nov 2020 20:15:41 -0800 (PST) Received: from localhost.localdomain (p784a5642.tkyea130.ap.so-net.ne.jp. [120.74.86.66]) by smtp.gmail.com with ESMTPSA id s10sm4588340pjn.35.2020.11.12.20.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 20:15:41 -0800 (PST) From: AKASHI Takahiro To: lukma@denx.de, trini@konsulko.com, xypron.glpk@gmx.de, agraf@csgraf.de Cc: sughosh.ganu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH v8 04/18] dfu: export dfu_list Date: Fri, 13 Nov 2020 13:14:57 +0900 Message-Id: <20201113041511.48207-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201113041511.48207-1-takahiro.akashi@linaro.org> References: <20201113041511.48207-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This variable will be utilized to enumerate all dfu entities for UEFI capsule firmware update in a later commit. Signed-off-by: AKASHI Takahiro --- drivers/dfu/dfu.c | 2 +- include/dfu.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.28.0 diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index a298c2c43999..501a60b34400 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -18,7 +18,7 @@ #include #include -static LIST_HEAD(dfu_list); +LIST_HEAD(dfu_list); static int dfu_alt_num; static int alt_num_cnt; static struct hash_algo *dfu_hash_algo; diff --git a/include/dfu.h b/include/dfu.h index d3d7e07b60d8..eaf4bfc0d5ed 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -158,6 +158,9 @@ struct dfu_entity { unsigned int inited:1; }; +struct list_head; +extern struct list_head dfu_list; + #ifdef CONFIG_SET_DFU_ALT_INFO /** * set_dfu_alt_info() - set dfu_alt_info environment variable