Message ID | 20201106213655.1838861-16-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1651029ilc; Fri, 6 Nov 2020 13:39:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyU8F+gR99U2g7dsrRRoOMHHRvQh3waBiOkA30u2qM1bAUoVEVUPorjmaiHGa1VNAdAYB0/ X-Received: by 2002:a1c:4909:: with SMTP id w9mr1552374wma.15.1604698759305; Fri, 06 Nov 2020 13:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604698759; cv=none; d=google.com; s=arc-20160816; b=F2ZlDsXU56AMc/WSYsvYv/pZPdoFYXnfT81pt7Da+Sfl6m5ji0aNuZBMdFEqEYfjVU BA+1mqKuh6oMt44Xr9m4hynDFXtpDY+pE1+bqj8SIJHet/DdQcN5EVaIvC4eRJAA/Ylg /A90ORIE4tDsqr17CU8CpM4esOBbjvx98mFeOFdbprBBGUoBvWz+bXaj4xM0LGMc7eOL DuRAK04BN6w1dXvlb29P21G1W4FVh6NfdFSbyfqiX1x+DsTNWFAvhfA0gC5D8V/0IKS4 A9fWcfzELtkmPt9ptiWHiXgB/koqzdi55xgQ7W9/86YyB2oPHT6J0HSQ6J4CiSBrvaJO Bgew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=n/DTXePThcgrH6HMtQaU/usSvTmxDbR/cIp+unxHlng=; b=bwp3gPuJCWm8jMSOkC29NDqWLJnnEintHxhzu3UC/H0cXJNXWliP1t+CH8uxNrH3SM APehiVIy946LT/hPomgNq8PVAdOLxw09X1Hrfa6rhZjKlpYvNVdj5VKFoJuCsTSoIaUy 63pdbRzVniHkxyVkNYPcMcLnekG7n29m5dATZgMcyarc5ySc1t1fizBkSFenMfJCKYiq m7ZussE4H3o8Wg6vH/qSR9S697Gj6DKiMMBI3AmMkOAoWoEjk5rX+EOcWMXEtRZuTHSL MLKzcJ2G2Tg9B8wkO7kFo3X/wRRgSiWiu7r8KT1mxPVKWeWd+Pmd4SSc1UKglubpPvTg 9Idw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=f2rpVO6O; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YuusY46l; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-mtd-bounces+patch=linaro.org@lists.infradead.org> Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id z11si2159337wro.289.2020.11.06.13.39.19 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:39:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=f2rpVO6O; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YuusY46l; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=n/DTXePThcgrH6HMtQaU/usSvTmxDbR/cIp+unxHlng=; b=f2rpVO6Orfg6S4g0xIEjxpTMF YK9GSvT5jKoCu/ZKU00CXmo45PWOR7dOqSVudaofQCtlBuDToolwsBLnoakbPZ24CxObq6BWIwgpC sIHph3/nb2nqv73KWv+E7jPwvyGuOTCXr0DAgkgIzIyoVtwqB8yP4DxykAwwgG6z8pRWzepNR8Jwu gdbP2YnC9FpbtXfO1QR5XApcKfO81QdAYe9H/NM4SlKB6QJK2aYRjnyfoahvAuVCRhn94oQT1K7ye z5jsDWWuI5pJrcIfB+ObwCYcpGFA2yi92CCuI6bDzJeNxVZQxyXOTaBaqWKYcMo7Nhr+SZKVH+lmd AAsvLdJZg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb9Rr-0003Zh-39; Fri, 06 Nov 2020 21:39:07 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb9Q8-0002eE-KW for linux-mtd@lists.infradead.org; Fri, 06 Nov 2020 21:37:24 +0000 Received: by mail-wr1-x444.google.com with SMTP id n15so2765925wrq.2 for <linux-mtd@lists.infradead.org>; Fri, 06 Nov 2020 13:37:20 -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=zU6AEe7QJ86BUUdNT9vgeNl78+UInfUWOmxhJubmBR0=; b=YuusY46lidvYZNZcyIlP029LugBzFM5/o75ceo7IvkH//GmrbJTHOAsMyoRKekOXtQ TMitq0JQgNzh3BTtq1WMw7iHMlVscy6Pm0oe+l3nNt7n3n58MDHtM1EgF5zfaxwvzpej TrplfRFEutXmar5oP3bwEM/W2dm2yvMrpuTx2ZmGIUVIQ1qysS9V7ChRifCaiMV2VLli Z6eIumohXtw/X03cudUHrEE4fE8PNkpyvpHPyHsyDCwlxgc1xtzbCYB6P2eQTjFfiaDI PkJJ9KI6WIdnWirDj9iQCXiQ8OV6wQLGf1xhikpyTW4Lge5bH3lIbJzAe3MfnGOBtvBX gCyw== 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=zU6AEe7QJ86BUUdNT9vgeNl78+UInfUWOmxhJubmBR0=; b=nZTk+i1mCPgH8TZ9FRKYIP7fsglyA13/7nrHeRiF6o5pElnyIQ+kxiBWrAKtso+FDt Y7IibMDcDDNuUiopnINlPWwdMOrEaROpNCrVUiusIYJdPam9Ku6gvCsSNLv+Ecl5Z+Qm 0kTjvis8foeStro5IW12zz+fMG5mnzxtPobkRzb0NqoVAAZGGd1NfMT3QhuSDLGi5gA6 eEW9GIijxabCRIq6QW1/MGqitmAuzaOWZStoh+Fh6cbXjKue1hoW7IHGKmKxaIU31DiV 9ayoUV5SaOmvY7mIaZcn4uK1gl7ds89TOI+Ktmnn8ntqsv5U2Af8RhHoEUrJ+kWh/0Hb IB6Q== X-Gm-Message-State: AOAM531SkC5fKIHGak4Qu4O2MwPShQP5GWr3rvnaMIwcwnbqZHP2jNeQ 0352BDuiWS0rEiw1wYj9cqgndw== X-Received: by 2002:adf:fd06:: with SMTP id e6mr4794908wrr.206.1604698639476; Fri, 06 Nov 2020 13:37:19 -0800 (PST) Received: from dell.default ([91.110.221.236]) by smtp.gmail.com with ESMTPSA id d16sm3984942wrw.17.2020.11.06.13.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:37:18 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH v2 15/23] mtd: nand: raw: diskonchip: Marking unused variables as __always_unused Date: Fri, 6 Nov 2020 21:36:47 +0000 Message-Id: <20201106213655.1838861-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201106213655.1838861-1-lee.jones@linaro.org> References: <20201106213655.1838861-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_163720_805141_186B04CE X-CRM114-Status: GOOD ( 19.82 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: Dan Brown <dan_brown@ieee.org>, Vignesh Raghavendra <vigneshr@ti.com>, Richard Weinberger <richard@nod.at>, linux-kernel@vger.kernel.org, Boris Brezillon <boris.brezillon@collabora.com>, linux-mtd@lists.infradead.org, Miquel Raynal <miquel.raynal@bootlin.com>, Thomas Gleixner <tglx@linutronix.de>, David Woodhouse <dwmw2@infradead.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org |
Series |
[v2,01/23] mtd: mtdpart: Fix misdocumented function parameter 'mtd'
|
expand
|
diff --git a/drivers/mtd/nand/raw/diskonchip.c b/drivers/mtd/nand/raw/diskonchip.c index 94432a453e5ee..d5050e32cc421 100644 --- a/drivers/mtd/nand/raw/diskonchip.c +++ b/drivers/mtd/nand/raw/diskonchip.c @@ -216,7 +216,7 @@ static int doc_ecc_decode(struct rs_control *rs, uint8_t *data, uint8_t *ecc) static void DoC_Delay(struct doc_priv *doc, unsigned short cycles) { - volatile char dummy; + volatile char __always_unused dummy; int i; for (i = 0; i < cycles; i++) { @@ -703,7 +703,7 @@ static int doc200x_calculate_ecc(struct nand_chip *this, const u_char *dat, struct doc_priv *doc = nand_get_controller_data(this); void __iomem *docptr = doc->virtadr; int i; - int emptymatch = 1; + int __always_unused emptymatch = 1; /* flush the pipeline */ if (DoC_is_2000(doc)) {
'dummy' is never checked (as per the nomenclature) and the use of 'emtpymatch' is currently #if 0'ed out. We could also #if 0 the declaration, but #ifery is pretty ugly, so I like to keep it to a minimum. Fixes the following W=1 kernel build warning(s): drivers/mtd/nand/raw/diskonchip.c: In function ‘DoC_Delay’: drivers/mtd/nand/raw/diskonchip.c:219:16: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] drivers/mtd/nand/raw/diskonchip.c: In function ‘doc200x_calculate_ecc’: drivers/mtd/nand/raw/diskonchip.c:706:6: warning: variable ‘emptymatch’ set but not used [-Wunused-but-set-variable] Cc: Miquel Raynal <miquel.raynal@bootlin.com> Cc: Richard Weinberger <richard@nod.at> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: Boris Brezillon <boris.brezillon@collabora.com> Cc: Dan Brown <dan_brown@ieee.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-mtd@lists.infradead.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/mtd/nand/raw/diskonchip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)