From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: [PATCH] mfd: tps65217: fix nonstandard declaration Date: Wed, 14 Sep 2016 10:13:28 +0200 Message-ID: <20160914081402.802116-1-arnd@arndb.de> Return-path: Sender: linux-kernel-owner@vger.kernel.org To: Lee Jones Cc: Arnd Bergmann , Tony Lindgren , Marcin Niestroj , Grygorii Strashko , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: 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(-) 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]; -- 2.9.0