From patchwork Tue Jun 27 15:34:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 106452 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1343118qge; Tue, 27 Jun 2017 08:35:52 -0700 (PDT) X-Received: by 10.84.164.106 with SMTP id m39mr6300266plg.92.1498577751990; Tue, 27 Jun 2017 08:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498577751; cv=none; d=google.com; s=arc-20160816; b=Gi3dWEQJ8YEsaKgvM9I2PAzO/3qQlRZHkQmWWMAyJB4evQyHrQPGKALwlJvgtFxbxt eAn8j5n7Ohi1eHMbHBlz6gcrvGv6MQYMpTf+u8bmQUK+yobyeI5T4HxHAFTKbw/ibpSc whVD+5lEwz4QKVIvMoW5KnpTuZqUHJPQu4Bhf5fzt7fMUdBNcK077lna8WHPmMb4xbJ1 oHSXHaSDFR2Hq8P9tj82a4W21ywIizyeUHBAHU/e9//dzCGYwhkVd9La+SPQJi84omSb V7y8afm4kAd5PDww1xlXJ0P80Tpaw8z4R31aumwaMusx9K7nadayd0J0ojiixfikDbNU YTVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=9qSqm0SCHxBQKeRUz8v/tBhCpkb4LOxGZc9RgdwUSz8=; b=VlT7x3TtIn5+N4Rj6mL+X1P2LIp+L5yPwTe/O0axkJE/971k2wuh3ItZfLqNMoaAxG JcEmPDB2c5daizKJjRYSR9BWofUwjETDMi7c2ygZVSShh90GU4NYQxB+qkIZ9YAoheWv 3hScU3YlT2iGPkN1/64qpX/kLlEFKjCuUqvl5trOS1mGEC2oG6snCsaIeQsgPw+vUKFx /h+W9U/FfCa3/7g5w/+SAy0Sf83gH4hKA8cIWiuGFJlDGko14KnmPnohoJA/EfZg3RtM 1PgljuqXF+CYfu3mXDEU/urvcobH/CQkNTMXI0SyIlLNqCXKObt5GnViPqo7LqPagMkQ Dakg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.b=HzJeRVoO; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id k72si2095238pge.258.2017.06.27.08.35.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 08:35:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.b=HzJeRVoO; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=9qSqm0SCHxBQKeRUz8v/tBhCpkb4LOxGZc9RgdwUSz8=; b=HzJ eRVoO7JIcsNW+tbPdz5uRK8fWsMPn1GtoiSyADGv1VG0vC/ZpI2M3rC1UKeSN1fMkpdlSEsECgY4T BUYj2iginmPoIzVuvjv2qzBdTWcYRNMiD5qXJFE7shMSFZ8L/8UQ7oEQtUrqAJ+ZMeaVpsTto8A0L InbRzttevfV4ZtnQWORl6V85Yfp4Oug4iJc+eSLvw7MYZkkidOAUE/VQNfrBNMbHLrXUIs6zfHPRc xWBYzfFZMsEFWX4d/wBiTnT6I3nyyH+CkpVkDPzCK5mrS8fOnz0QjTJ1HeJCAUunSgMrpExSsfkEn je11/KdCuNtYKjQ3wKQ4EhKnSk/9wuQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dPsWi-0002ZG-Mj; Tue, 27 Jun 2017 15:35:40 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPsWf-0002Wz-8Y for linux-mtd@lists.infradead.org; Tue, 27 Jun 2017 15:35:39 +0000 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MWjbX-1dETKf3S8p-00Xw4N; Tue, 27 Jun 2017 17:35:10 +0200 From: Arnd Bergmann To: Cyrille Pitchen , Marek Vasut , David Woodhouse , Brian Norris , Boris Brezillon , Richard Weinberger Subject: [PATCH] mtd: spi-nor: cqspi: remove duplicate const Date: Tue, 27 Jun 2017 17:34:19 +0200 Message-Id: <20170627153508.1329697-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:FQS8qRCnvmiB8edqEBOV2IjmxR5zq590pCAm+GgzUqNCIAKfB1V qgnVNNHHn1lOS1jRmYoQ62Igj4FdV2q9zqKMTpt6PCuukFtzq+ovFzr23LoQAcdH8/MDs4Y 7V3l530WGVvIgcmAfJ8OrbObdlBslk/nTY0kgKs8xGV2eQL6ULRXLpESU+yh28E8wP1tvYU 4WzPxCfnqa3bPb1UASCYQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:7/R5UxZxbi0=:kR8w+2ij7Y0rg/tHbI8eCR BSeCD31lwHye9AKiuCkal/Z2pfbc4++C9OxyCMbhVREKRgUhl3v8LVrS/QwOfuRxtUjXLf7Zv OCnOkDvHN0wDtPwS+L3hHnQc27px2ejv6OUNODaASMXuS/yBLDb6csH3dMRsk3P1JBIi+2QcF g2cJ33P86wbOwiS3vTwaeCbSDR9HtbDUNWXi2gOJKvKeD8pyOTofUQUNec3yrphwaNEbAhjyO vY0V9f0NKF6611rTAzzoGi3Wp7BP/fF6As0oeSvkH2e/LrlPOlHNTqKxQ9yQ8Y67LjNBPXcKU xOmcMR4CjHfCmiNGw4979mrRO0jpOistK48rXRieGG7Azhg7wWQV7jB5In09btFxqOkBnjQww kYq23Cwwefp3NrYHD8jMy1ZYXhPtaIMn6rdWvygyHgQSr9TzVmv7igv+ZvzPE9JdlCIa33ykt GBKiMxon2dSTPyfpswYgYdi8/sO4utXkq6Rq3Uk+sq2FpSYlZdEnKsi2e5y96IHkShQ3by66Z beogbdFpT7D/Y25PmbKQxukd6oIIj3uL2xdfiSmcbfDhefr6MJ2TqcV5VmhURyUoUnAmgxRb/ K2MWZu7CClY/6Bfv0iHij13bW28FBfqdqHJMX+F5Zi+VeVMn8klkexaN/Z5ToqJbfAPUtYdpX vXZDGmxhFvFf2RSfqwRfB7bQn4axN6YOo43BqJY3s3zeMm0EifA4zPGUCO0l4mqfHv4s= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170627_083537_665281_804A32F8 X-CRM114-Status: GOOD ( 10.30 ) X-Spam-Score: -4.7 (----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-4.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [217.72.192.75 listed in list.dnswl.org] -2.8 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [217.72.192.75 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org The variable was already marked 'const' before the previous patch, but the qualifier was in an unusual place, and now the extra 'const' causes a harmless warning: drivers/mtd/spi-nor/cadence-quadspi.c:1286:34: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier] This removes the other 'const' instead. Fixes: f993c123b461 ("mtd: spi-nor: cqspi: make of_device_ids const") Signed-off-by: Arnd Bergmann --- drivers/mtd/spi-nor/cadence-quadspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quadspi.c index d315c326e72f..53c7d8e0327a 100644 --- a/drivers/mtd/spi-nor/cadence-quadspi.c +++ b/drivers/mtd/spi-nor/cadence-quadspi.c @@ -1283,7 +1283,7 @@ static const struct dev_pm_ops cqspi__dev_pm_ops = { #define CQSPI_DEV_PM_OPS NULL #endif -static const struct of_device_id const cqspi_dt_ids[] = { +static const struct of_device_id cqspi_dt_ids[] = { {.compatible = "cdns,qspi-nor",}, { /* end of table */ } };