From patchwork Wed Sep 14 08:13:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101797 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1751978qgf; Wed, 14 Sep 2016 01:14:14 -0700 (PDT) X-Received: by 10.66.193.199 with SMTP id hq7mr2318561pac.70.1473840853931; Wed, 14 Sep 2016 01:14:13 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pb1si3587983pac.1.2016.09.14.01.14.13; Wed, 14 Sep 2016 01:14:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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 linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760106AbcINIOM (ORCPT + 4 others); Wed, 14 Sep 2016 04:14:12 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:53164 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbcINIOK (ORCPT ); Wed, 14 Sep 2016 04:14:10 -0400 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0Mfe8p-1bMFr53TnX-00P7BF; Wed, 14 Sep 2016 10:14:04 +0200 From: Arnd Bergmann To: Lee Jones Cc: Arnd Bergmann , Tony Lindgren , Marcin Niestroj , Grygorii Strashko , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mfd: tps65217: fix nonstandard declaration Date: Wed, 14 Sep 2016 10:13:28 +0200 Message-Id: <20160914081402.802116-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:eESpsSAI58irTV0xyo45cEQvjQFtKrsAqI5XGbd0IQY+bBt3Ax2 t+8ZMIhH9/wKkWZlEXNoNcSF+J28q0uiyxzKDQjEpTj0WI/BO5CFnCrgT3FeonxWaUDWqhA +dy2+cjhHukAKxKgkqH6FAPctU6e7ddQKSNXQQuc440FuuvqIIUiOFCCn9xbEPigWlsZ606 Kp2qWR4YjzDlPmh4rfZvw== X-UI-Out-Filterresults: notjunk:1; V01:K0:H2DuUNAuuy8=:BNPLeikORD2+/nkLhHTU8E BGz8sp5ougvCpbWJgLJfDe+oXNiC5+TBW7U7X5R3gOCFWpbEr9choqConaEds9rYIOHizkBd1 5iuq/o0FFbIn9cqcb9M2s25lCKfUqxb/MIDYHks2xZVKA7HsL2A0tGaZMWZmxKhyEpSjoCU/I DvFqQQr3M1dZy/ymTFd6VG0n/GVzbVnSE97gRCJSIfK2UJOs6P1M3l3DNDbFthCJPTQ7HwWYp WvWjITQXs+3AoD6wwxWpxGGWqL9lDUlA3/g4cv5abl7n80BFVAaMdEGKSX2x2KvK+7susDt0r PqMOayZxxrWwfocolH5SnXPgcexzLrKTLBy7SLfwUEEea1z2rY5i6wz08fvTL8iaM9qsGlu/g FlhVDxrznQHysm9gDybIBU0aMBRdfVYK2sxRkl+Ya3q6V9MSF6Ds+0nHSprd5C1VJ8nJDh/yh CeQEKAa/WSgODwR3QkTex6xDZQE5m6ankUhnWXClHUkDJ8dini5p2D9AYw1Zs3Dk95LZr4CGI FYnRnVNMYySfpMwumZl4Br4B+L+MyvQqzzYiwsCDmu7hJ24mBgtvOYvroNn7u6PgiajPPfey4 XWGB6lR6RHjy27T4zcri6kojUZTql8j5ZcP8UzxP9QTjmhiK7Qn1AH2vgsRkGoyldhxPikdWT eHATwHlz+DF6FL6I2pFKWkT9RD3MkIy7p3g8vP8LMNbMiuAdNonwk5NY5vWNMr1Y909I= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The tps65217 gained a new warning when building with W=1: drivers/mfd/tps65217.c:85:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] This fixes it by putting the 'inline' modifier before 'const'. Signed-off-by: Arnd Bergmann Fixes: 262d5cc6ceb2 ("mfd: tps65217: Add support for IRQs") --- drivers/mfd/tps65217.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" 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/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c index 57c87412106f..9a4d8684dd32 100644 --- a/drivers/mfd/tps65217.c +++ b/drivers/mfd/tps65217.c @@ -82,7 +82,7 @@ static void tps65217_irq_sync_unlock(struct irq_data *data) mutex_unlock(&tps->irq_lock); } -static const inline struct tps65217_irq * +static inline const struct tps65217_irq * irq_to_tps65217_irq(struct tps65217 *tps, struct irq_data *data) { return &tps65217_irqs[data->hwirq];