This is a note to let you know that I've just added the patch titled gpiolib: add gpio_device_get_base() stub for !GPIOLIB to the 6.7-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: gpiolib-add-gpio_device_get_base-stub-for-gpiolib.patch and it can be found in the queue-6.7 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From ebe0c15b135b1e4092c25b95d89e9a5899467499 Mon Sep 17 00:00:00 2001 From: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> Date: Thu, 25 Jan 2024 09:16:00 +0100 Subject: gpiolib: add gpio_device_get_base() stub for !GPIOLIB 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) { Patches currently in stable-queue which might be from krzysztof.kozlowski@xxxxxxxxxx are queue-6.7/gpiolib-add-gpiod_to_gpio_device-stub-for-gpiolib.patch queue-6.7/asoc-codecs-wcd938x-handle-deferred-probe.patch queue-6.7/gpiolib-add-gpio_device_get_base-stub-for-gpiolib.patch