Message ID | 20201102115406.1074327-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 w18csp3674630ilc; Mon, 2 Nov 2020 04:12:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJycZWVMt/OrSfemXZ3Xfu+X9JVzrHS1NC/imZkIvHzEN94HeGoBOETMB4a3mKT9TCTgzEyJ X-Received: by 2002:ac8:590c:: with SMTP id 12mr5681172qty.28.1604319131976; Mon, 02 Nov 2020 04:12:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604319131; cv=none; d=google.com; s=arc-20160816; b=q/ns50F7Brmh6EOFBX7bJh/HIeOwvjR6H0MmtvehQ+HXzik/fEx2oB7SlbRKxlg3/J UmRETriHiTVagB3ILsZNVhDTHxy2qRDCsVr7oLDTY2YajjjVYSXCUC2NyLb7Wvk+JGgI Q1gzoZx3jd2uiPqsy79xZqVafit6XYrsrMQl2iITCvfcOvIoHQfjf6X0aoainhmpABBj WMasdYIfwp6NBOEmoxCKuORSyofUH+apwM5K4GC1Pj8Mfdt9X+NaMDimb56wLu/mpuVH wbtkKwKDYDQVpnIx3QZtEJeJvvCmyB9PAd0MaP3lf0ZE+CcTYR7gDw3A3ihu4eUUllN1 9msA== 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:dkim-signature; bh=edRb0ZWAir2+5l4JLx8maPEkWca3tyZ2+vUupR3jyBA=; b=U1iyMxtZ7NTEEJdn1hTsam/66LBHWoCv2fj1yDkHutMm+R1cxaBQbiqq8oZhYRznpG 2ujM1xTZP9a/RXDDtRYTarVwOUjhDaT/Eh+xdP+9THQ1csIwEDjh2azOWdhDtsPv3E9/ u8YFUq1msYXgtYFZ3bvnvkljYkPNcGi+CjZRP382+i6GO6gswSc0RNoMQVFsCPJjrIS5 IotB3rhmG4rj4mcF83cTFSgTf/nV6CYaEIor4dRi3VGfJfuvM1KdsuHF5O4FcWqSF90D 89UlCshO5pKVuVJyLj5ouRehtpYiHpbutJfMQShrgPlZCPPHyJe4wqOtUNDZxfzM3qUD QTIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=K6V2y1fT; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=casper.20170209 header.b=uZKVbPP0; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ps+goPOu; 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 75si8883312qtc.362.2020.11.02.04.12.11 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 04:12:11 -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=K6V2y1fT; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=casper.20170209 header.b=uZKVbPP0; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ps+goPOu; 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=edRb0ZWAir2+5l4JLx8maPEkWca3tyZ2+vUupR3jyBA=; b=K6V2y1fTeDyJtz+9Y2qFQNlKx kHNwa9HQ9oEA5mYRbR3JR9tN2jjHVPUcuvMR28ZqlNqYkf+pyoI2wcfiHTLitpbKLqUDKGG1Vfo/L yjcizqQKWN++cPjW98I+jV9eaUU5q1jrGPBwQepAYlyaYGxkeMs1qgFnd3Pu6bQWuxVwLocoyn4t0 CtWHksMZHf8ZSf/16KnAVEXZOkib6lRpQ3X1VExprDyLCYfla2CeI286EbWzDHXLOVlbSRFZHln+n WNy+YgOUqT3D6iCV8y8naU+ZoM5L68yTLmDvfEmQZnYPBVQJWBKFR3BtMy+NVx9mIyHcbMNrMUhLu 5o0cawIpQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZYgr-0003xO-Vd; Mon, 02 Nov 2020 12:12:02 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZYgo-0003p2-1u for linux-mtd@merlin.infradead.org; Mon, 02 Nov 2020 12:11:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description; bh=TGKp9BcrRvWbGFJ8nJFrwV99IT3tH0nAgbqx1me4UIc=; b=uZKVbPP0Mp0elmX3BLG56JDqVb EoEsZ0FdNEHFMwrrjD3BpJjdZbjGVo/SdtHI6PdjBk9rCbwtwtEopbg89GnijbeuXaNkojhImY4Sn 3au70qHoR05HkuLimcjW6jC/tZj/+kezfolffF45m38IzlUd8DmiO07oCVqFKsGDaICjd5gqfDvm9 JT+QtKqNJsdJdiBXxKkVCTOg5QRBMND5wV32cc0u4RcWft4Qq9U0h6RdyhI9/V6cjGy49ODtQqleK TYEBHmnsbQBAJKzu1sAOreTQPBfOhlZ+W1C0c4CjARuxKBYD4h5BMqKn6GOeDkA5/OwwWI3tMfsnm faTXq9hQ==; Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZYPy-0004t4-F8 for linux-mtd@lists.infradead.org; Mon, 02 Nov 2020 11:54:49 +0000 Received: by mail-wr1-x442.google.com with SMTP id a9so14219957wrg.12 for <linux-mtd@lists.infradead.org>; Mon, 02 Nov 2020 03:54:33 -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=TGKp9BcrRvWbGFJ8nJFrwV99IT3tH0nAgbqx1me4UIc=; b=Ps+goPOuM+t0f/WlfFZJVo78ITTY00f5bitMKqOsoWammNIcgHwveDbWPtJrWxn3CA /C1xHAxMEnQNkGB0blsWANw8bvBY1hzTMg1o0li6opngvZP7JgNhbBcCJo7ZPPM9K/SR AL1uFPtXD7bNCl2f6vSoA79GiV8d+OiAlL1MIg3wA51gWFV9zJsO6ZlJOnOyVJwf6fzr k7oYoPxGyQs7Xyd5iT9XHCbPspf/uJ40ir9lKEve74yHqx/HTc6rfSa/VB0Nf4VE4kDk 6F8QQmKRT3tWThuOYOxlfh2PxNDagAQHy9n7SUUMbvcrRllTOLSGnV6Z58/L+FXQcufc R1Sw== 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=TGKp9BcrRvWbGFJ8nJFrwV99IT3tH0nAgbqx1me4UIc=; b=eMTeee/nr2KPAo5EURQiBUzCAATNrINyzGHnWYq5aDdBXjaDwKjP2jioiJr+suEGyG iSYONQA8c8G1CdfsRpyOEtCP3gyFNDRrmoqcdEp9BPuyhn2gX9zN+hdzxci0km2RrXwa q2KgQFvbdAmGK/Uzh+jECI5SGALMYXcnp+JTLDAXPc30nQejvseI1upgDoVHbiOjcPgA M5sGXWKxPh0imVze5e0FL0JBaB6WKGpj0vB9GTTq+fiXOsUevCYXGr6V2she/BnW1o6h lHFqHnOK3FTFU6jljObAc4FvCedJNHSIX915rC7Bq00QwK+jhe3xEtri+XY5TzTxrOd5 VpXA== X-Gm-Message-State: AOAM5306qew4fl6X1eZahf+aONTIy8Wz5sAPXVfsHGm07trf5LFwtFXW gx9fpSoV4OChWrvOAAnFXPplFQ== X-Received: by 2002:adf:f286:: with SMTP id k6mr19922306wro.34.1604318072455; Mon, 02 Nov 2020 03:54:32 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id t23sm14284010wmn.13.2020.11.02.03.54.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:54:31 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: vigneshr@ti.com Subject: [PATCH 15/23] mtd: nand: raw: diskonchip: Marking unused variables as __always_unused Date: Mon, 2 Nov 2020 11:53:58 +0000 Message-Id: <20201102115406.1074327-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102115406.1074327-1-lee.jones@linaro.org> References: <20201102115406.1074327-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-20201102_115436_071919_16D24CAB X-CRM114-Status: GOOD ( 18.70 ) X-Spam-Score: -2.1 (--) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-2.1 points, 5.0 required) 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:442 listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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>, Kalev Lember <kalev@smartlink.ee>, Fabrice Bellard <fabrice.bellard@netgem.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>, Lee Jones <lee.jones@linaro.org>, 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 |
[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: Kalev Lember <kalev@smartlink.ee> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Fabrice Bellard <fabrice.bellard@netgem.com> 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(-)