summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ftgpio010.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-08-22 11:18:17 +0800
committerLinus Walleij <linus.walleij@linaro.org>2019-08-23 11:59:23 +0200
commitc7663fa2a6631e5dddc1b7b2ba2e905ddffaff90 (patch)
tree13ebe0e5b74773e7164b6dfa7c3b502611f4569f /drivers/gpio/gpio-ftgpio010.c
parent7db47faae79bbffe2da15af4d5e061a49a56169b (diff)
downloadtalos-op-linux-c7663fa2a6631e5dddc1b7b2ba2e905ddffaff90.tar.gz
talos-op-linux-c7663fa2a6631e5dddc1b7b2ba2e905ddffaff90.zip
gpio: Move gpiochip_lock/unlock_as_irq to gpio/driver.h
If CONFIG_GPIOLIB is not, gpiochip_lock/unlock_as_irq will conflict as this: In file included from sound/soc/codecs/wm5100.c:18:0: ./include/linux/gpio.h:224:19: error: static declaration of gpiochip_lock_as_irq follows non-static declaration static inline int gpiochip_lock_as_irq(struct gpio_chip *chip, ^~~~~~~~~~~~~~~~~~~~ In file included from sound/soc/codecs/wm5100.c:17:0: ./include/linux/gpio/driver.h:494:5: note: previous declaration of gpiochip_lock_as_irq was here int gpiochip_lock_as_irq(struct gpio_chip *chip, unsigned int offset); ^~~~~~~~~~~~~~~~~~~~ In file included from sound/soc/codecs/wm5100.c:18:0: ./include/linux/gpio.h:231:20: error: static declaration of gpiochip_unlock_as_irq follows non-static declaration static inline void gpiochip_unlock_as_irq(struct gpio_chip *chip, ^~~~~~~~~~~~~~~~~~~~~~ In file included from sound/soc/codecs/wm5100.c:17:0: ./include/linux/gpio/driver.h:495:6: note: previous declaration of gpiochip_unlock_as_irq was here void gpiochip_unlock_as_irq(struct gpio_chip *chip, unsigned int offset); ^~~~~~~~~~~~~~~~~~~~~~ Move them to gpio/driver.h and use CONFIG_GPIOLIB guard this. Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: d74be6dfea1b ("gpio: remove gpiod_lock/unlock_as_irq()") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20190822031817.32888-1-yuehaibing@huawei.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ftgpio010.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud