1
1
openwrt/target/linux/ath79
Shiji Yang 15374ca2e7 ath79: mikrotik: fix 6.18 kernel GPIO driver build errors
gpio_chip .set() callback return type has been changed since linux
6.17 kernel[1-2]. Fix:

drivers/gpio/gpio-latch-mikrotik.c: In function 'gpio_latch_probe':
drivers/gpio/gpio-latch-mikrotik.c:152:17: error: assignment to 'int (*)(struct gpio_chip *, unsigned int,  int)' from incompatible pointer type 'void (*)(struct gpio_chip *, unsigned int,  int)' [-Wincompatible-pointer-types]
  152 |         gc->set = gpio_latch_set;
      |                 ^

drivers/gpio/gpio-rb4xx.c: In function 'rb4xx_gpio_probe':
drivers/gpio/gpio-rb4xx.c:133:41: error: assignment to 'int (*)(struct gpio_chip *, unsigned int,  int)' from incompatible pointer type 'void (*)(struct gpio_chip *, unsigned int,  int)' [-Wincompatible-pointer-types]
  133 |         gpio->chip.set                  = rb4xx_gpio_set;
      |                                         ^

drivers/gpio/gpio-rb91x-key.c: In function 'gpio_rb91x_key_probe':
drivers/gpio/gpio-rb91x-key.c:165:17: error: assignment to 'int (*)(struct gpio_chip *, unsigned int,  int)' from incompatible pointer type 'void (*)(struct gpio_chip *, unsigned int,  int)' [-Wincompatible-pointer-types]
  165 |         gc->set = gpio_rb91x_key_set;
      |                 ^

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.18.y&id=397a46c9aa3343e8efe6847bdaa124945bab1de4
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.18.y&id=d9d87d90cc0b10cd56ae353f50b11417e7d21712
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22771
Signed-off-by: Nick Hainke <vincent@systemli.org>
2026-04-11 21:11:07 +02:00
..
base-files/etc/hotplug.d/ieee80211 ath79: migrate Archer C5 5GHz radio device paths 2022-03-31 18:07:29 +02:00
dts ath79: wndap360: don't pass bootloader args 2026-04-09 10:47:53 +02:00
files ath79: mikrotik: fix 6.18 kernel GPIO driver build errors 2026-04-11 21:11:07 +02:00
generic ath79: refresh 6.18 kernel config files 2026-04-11 21:11:06 +02:00
image ath79: wndap360: fix sysupgrade 2026-04-09 10:47:53 +02:00
mikrotik ath79: refresh 6.18 kernel config files 2026-04-11 21:11:06 +02:00
nand ath79: refresh 6.18 kernel config files 2026-04-11 21:11:06 +02:00
patches-6.12 ath79: restore kernel 6.12 config files and patches 2026-04-11 21:11:06 +02:00
patches-6.18 ath79: fix 6.18 kernel leds-reset driver build error 2026-04-11 21:11:07 +02:00
tiny ath79: tiny: increment compat version for RE355/RE450 2026-03-06 12:04:23 +01:00
config-6.12 ath79: restore kernel 6.12 config files and patches 2026-04-11 21:11:06 +02:00
config-6.18 ath79: refresh 6.18 kernel config files 2026-04-11 21:11:06 +02:00
Makefile ath79: enable 6.18 testing kernel 2026-04-11 21:11:07 +02:00
modules.mk