6.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> commit ebe0c15b135b1e4092c25b95d89e9a5899467499 upstream. Add empty stub of gpio_device_get_base() when GPIOLIB is not enabled. Cc: <stable@xxxxxxxxxxxxxxx> Fixes: 8c85a102fc4e ("gpiolib: provide gpio_device_get_base()") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- include/linux/gpio/driver.h | 6 ++++++ 1 file changed, 6 insertions(+) --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -800,6 +800,12 @@ static inline struct gpio_chip *gpiod_to return ERR_PTR(-ENODEV); } +static inline int gpio_device_get_base(struct gpio_device *gdev) +{ + WARN_ON(1); + return -ENODEV; +} + static inline int gpiochip_lock_as_irq(struct gpio_chip *gc, unsigned int offset) {