next-20190904: build failure in cp210x usb serial, gpio related?

From: Pavel Machek
Date: Sun Sep 08 2019 - 04:51:52 EST


I'm getting this compiling the -next:

CC drivers/net/wireless/intel/iwlwifi/mvm/mac80211.o
In file included from drivers/usb/serial/cp210x.c:23:
./include/linux/gpio/driver.h:722:19: error: static declaration of
âgpiochip_lock_as_irqâ follows non-static declaration
722 | static inline int gpiochip_lock_as_irq(struct gpio_chip
| ^~~~~~~~~~~~~~~~~~~~
./include/linux/gpio/driver.h:706:5: note: previous
declaration of âgpiochip_lock_as_irqâ was here
706 | int gpiochip_lock_as_irq(struct gpio_chip *chip, unsigned
int offset);
| ^~~~~~~~~~~~~~~~~~~~
./include/linux/gpio/driver.h:729:20: error: static
declaration of âgpiochip_unlock_as_irqâ follows non-static
729 | static inline void gpiochip_unlock_as_irq(struct gpio_chip
| ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/gpio/driver.h:707:6: note: previous
declaration of âgpiochip_unlock_as_irqâ was here
707 | void gpiochip_unlock_as_irq(struct gpio_chip *chip, unsigned
int offset);
| ^~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/
drivers/usb/serial/cp210x.o] Error 1
make[2]: *** [scripts/ drivers/usb/serial] Error
make[2]: *** Waiting for unfinished jobs....
CC drivers/gpu/drm/ttm/ttm_page_alloc.o
AR drivers/usb/storage/built-in.a

Sounds like some fixes are needed in gpio headers?

Best regards,
(cesky, pictures)

Attachment: signature.asc
Description: Digital signature