gpio: stubs in headers should be inline
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 16 Aug 2019 11:38:12 +0000 (21:38 +1000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Aug 2019 08:42:07 +0000 (10:42 +0200)
Fixes: fdd61a013a24 ("gpio: Add support for hierarchical IRQ domains")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20190816213812.40a130db@canb.auug.org.au
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/driver.h

index 0e6d3b0..72d48a2 100644 (file)
@@ -543,14 +543,14 @@ void gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *chip,
 
 #else
 
-static void gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *chip,
+static inline void gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *chip,
                                                    struct irq_fwspec *fwspec,
                                                    unsigned int parent_hwirq,
                                                    unsigned int parent_type)
 {
 }
 
-static void gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *chip,
+static inline void gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *chip,
                                                     struct irq_fwspec *fwspec,
                                                     unsigned int parent_hwirq,
                                                     unsigned int parent_type)