From patchwork Thu May 11 12:24:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 99636 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp703218qge; Thu, 11 May 2017 05:25:07 -0700 (PDT) X-Received: by 10.98.96.65 with SMTP id u62mr61130pfb.186.1494505507502; Thu, 11 May 2017 05:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494505507; cv=none; d=google.com; s=arc-20160816; b=hU61Do705RTFrK3KGu9qo9a0lPnqeUcrJDQokHXGDGLJ2Z8Rfwfa33iJ13ehKp1UCQ pRwzyevOa7f6o5Ae3SqsbwqN9lsQ8C0EQXdYJtOTp6wm9PnUU7pZiKbz+t3jPMyQYm86 htjAsUPo+J2vtT0MfRhAHsAhqzTdFCHZlnAz03cJiUdx400NdTVlG076vttYjLTe66Qm 9Ep/5XFUjqMMyWwa3ta5l0aRaIFul7YsBOasQnTrWzM6fFa/8l8NHFq/RqovFP0dzutw 4N+Y4V8Wi5LVGrCHgLLsLc2K8OPiyo0W3eI1WupwX9DBlvv6uGEbyiC4yLtrvsAM8CG1 ueNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=X3Hdxf4+Vg5CoWxfugLQ+fj4FvnoYcK+GT6iuFUlFc4=; b=hgAqDvpvVJum4t5hUEuVn0yp0bi+E0vUxrQHTdHZ3r2gAxs2E9KSzzyUmkNWsQ6eSZ qYDcDuOJJARSdmH6sF2DuYw1y72olcZHNz8AOP39Gm2n3Zu63WOOAElAxT3mGLdWV/8c Dyt2vpdH8iAevWQzKZXDfX4f0HNpqZepWCkNn37DH7FTYw8GoKH63pgClYelOPbBR4n6 p964bGr8axqJJV56jYv8QeWyi4SdbWhhzDaKIHvk1JME497Wc9kQY0AuzTetiJKPoaGn 40A6fTLywNK63qtlobkjcbhfY6c14KGMKAwnTOaMOaPyTiNfuNMempE9ffhsTPHf/lcN 7pqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h190si28213pgc.21.2017.05.11.05.25.07; Thu, 11 May 2017 05:25:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755450AbdEKMZG (ORCPT + 7 others); Thu, 11 May 2017 08:25:06 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:61441 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755444AbdEKMZF (ORCPT ); Thu, 11 May 2017 08:25:05 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MIDV8-1dARJC1atq-003wrd; Thu, 11 May 2017 14:25:00 +0200 From: Arnd Bergmann To: Rob Herring , Frank Rowand Cc: Arnd Bergmann , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] of: remove extraneous 'const' in typedef Date: Thu, 11 May 2017 14:24:49 +0200 Message-Id: <20170511122458.3862716-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:nwFD6L1ewb8bBtdBuJCEMpBfqbl4PW0wsmIvBDt2S3MilQYjE0B lxDTOqHm+QA3g4BHKIzRJMmSei23qiONF4FplyNadG0TERfOAS4vZhIDK+txhJNTl9v8bUP jgtnNxN5d8WBw7RrRBbNh4sASqOkVWM/yY2o86I+TO3TFHjLvb1IsBwkxZWCXWnCwTF1HCz MvXjih/EHXDfk6ciTxKCQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:TM1Exg1X7xw=:aPECaIo+VfzB3/awRWqX5R NLjVc+8c0oL+nmLzV4biWbLjtCy5EIdLbF2b+XX8QKyKXmpEf3Nc+Of40SxPSKf1NIYX9vJwJ xOb3C0kzNpHpNYB8XDMseZiuo1g/F9mJC4rkD4HdypRpUKvzbCrBO37p1NlcGG2ogroUcqVIN oxo+roSALaFSeDVpHUZzmmXmGxpPGUCIYZX9c4K0B00/GsJmoe7FTSJPvauKnSYUv5RHjIG/7 4/00tO5gdal1hLKng6sstLIkXXlQnfsBq10YoNWLdDX/cbTam4Iw9nzkHWQiJY1xYVfwiiXEk oqWyBxclqEvotcgefB8itMHHt1qAnCIHE5BfVi+G7haGC2/IBmMkLzM2xlLq55nx6gQvyIbu8 Q9qbLPq9aH+tXeIJm/Hzftk91xDWJPBVU/n4dnrCsKGkz3VQ/gFYjaTyC7nnWtY8aLZ0HbMJj HjeIxdSAWv/bYBB+N1Ll4oGtpIaVxpBfTTt60s5jRrE0rOd7mFDRN08dVmEEjAoKCpPuxIsYI 2hS+Ot+Sobl8eLV1WP4dzofcN2FMHsqLf7oA9zJ06If2gTd+QjSu+VLc21YepVzEbokYWwQea G5Xv85R/rMCC1leMMedPv9j4NRVPWeV5GvtkvGyFU++u9EhrmmP8JXLEAXlbgW1C16OMt5n6Y rfhBcvdumUHXt7s50c8o4bFhTZUrcHNv9mzAcSSL6viNnKs4cCJNhCA9fbMStbZ2aLW4= Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org One change that was meant to address a sparse warning turned out to cause hundreds of new gcc-7 warnings: include/linux/of_irq.h:11:13: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers] After reverting the change, the gcc warnings are gone again, and I can't reproduce the sparse warnings either. Fixes: 17a70355ea57 ("of: fix sparse warnings in fdt, irq, reserved mem, and resolver code") Signed-off-by: Arnd Bergmann --- include/linux/of_irq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index ec6b11deb773..1e0deb8e8494 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h @@ -8,7 +8,7 @@ #include #include -typedef int const (*of_irq_init_cb_t)(struct device_node *, struct device_node *); +typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *); /* * Workarounds only applied to 32bit powermac machines