Skip to contentSkip to conversation

mfd: tps65217: fix nonstandard declaration

PATCH Applied Arnd Bergmann 2 participants 2 messages Sep 14, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: tps65217: fix nonstandard declaration

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'.

Fixes 262d5cc6ceb2 ("mfd: tps65217: Add support for IRQs")
---
 drivers/mfd/tps65217.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps65217.c +1 -1
index 57c87412106f..9a4d8684dd32 100644
@@ -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];
Signature · 1 line
2.9.0
Applied
#1 lore raw
Quoted 11 lines · Arnd Bergmann

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'.

Fixes 262d5cc6ceb2 ("mfd: tps65217: Add support for IRQs")
---
 drivers/mfd/tps65217.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

FYI: I plan to fix all W=1 and look at W=2 warnings today anyway.

Quoted 13 lines
drivers/mfd/tps65217.c +1 -1
index 57c87412106f..9a4d8684dd32 100644
@@ -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];
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog