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: 9330807 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8D33360231 for ; Wed, 14 Sep 2016 08:14:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F21429AAC for ; Wed, 14 Sep 2016 08:14:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7388029ABE; Wed, 14 Sep 2016 08:14:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A406C29AAC for ; Wed, 14 Sep 2016 08:14:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760106AbcINIOM (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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];