aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2020-01-16 17:50:03 +0800
committerLinus Walleij <linus.walleij@linaro.org>2020-01-16 11:27:12 +0100
commit9c6722d85e92233082da2b3623685bba54d6093e (patch)
tree6080fb230b4ca675f0a6ad13ba2c91db56c78602 /include/linux/gpio
parentgpio: thunderx: Switch to GPIOLIB_IRQCHIP (diff)
downloadwireguard-linux-9c6722d85e92233082da2b3623685bba54d6093e.tar.xz
wireguard-linux-9c6722d85e92233082da2b3623685bba54d6093e.zip
gpio: Fix the no return statement warning
In commit 242587616710 ("gpiolib: Add support for the irqdomain which doesn't use irq_fwspec as arg") we have changed the return type of gpiochip_populate_parent_fwspec_twocell/fourcell() from void to void *, but forgot to add a return statement for these two dummy functions. Add "return NULL" to fix the build warnings. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Kevin Hao <haokexin@gmail.com> Link: https://lore.kernel.org/r/20200116095003.30324-1-haokexin@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 9bb43467ed11..00d9f5b464c7 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -549,12 +549,14 @@ static inline void *gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *ch
unsigned int parent_hwirq,
unsigned int parent_type)
{
+ return NULL;
}
static inline void *gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *chip,
unsigned int parent_hwirq,
unsigned int parent_type)
{
+ return NULL;
}
#endif /* CONFIG_IRQ_DOMAIN_HIERARCHY */