openwrt/target/linux/ath79
Christian Marangi 4d702a5399
ath79: gpio-latch: fix compilation warning for wrong dev_err %
Fix compilation warning for using %d instead of %ld for gpio-latch in
dev_err.
Fix compilation warning:
In file included from ./include/linux/device.h:15,
                 from ./include/linux/gpio/driver.h:5,
                 from drivers/gpio/gpio-latch.c:13:
drivers/gpio/gpio-latch.c: In function 'gpio_latch_probe':
drivers/gpio/gpio-latch.c:137:46: error: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Werror=format=]
  137 |                                 dev_err(dev, "failed to get gpio %d: %d\n", i,
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
  110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
      |                              ^~~
./include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt'
  144 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
      |                                                        ^~~~~~~
drivers/gpio/gpio-latch.c:137:33: note: in expansion of macro 'dev_err'
  137 |                                 dev_err(dev, "failed to get gpio %d: %d\n", i,
      |                                 ^~~~~~~
drivers/gpio/gpio-latch.c:137:71: note: format string is defined here
  137 |                                 dev_err(dev, "failed to get gpio %d: %d\n", i,
      |                                                                      ~^
      |                                                                       |
      |                                                                       int
      |                                                                      %ld
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-12 03:15:42 +02:00
..
base-files/etc/hotplug.d/ieee80211
dts ath79: add support for ZTE MF282 2023-05-06 20:59:46 +02:00
files ath79: gpio-latch: fix compilation warning for wrong dev_err % 2023-05-12 03:15:42 +02:00
generic ath79: add support for Alcatel HH40V 2023-04-23 19:32:18 +02:00
image Revert "ath79: add empty squashfs-lzma filesystem" 2023-05-12 02:27:17 +02:00
mikrotik ath79: mikrotik: update kernel on NAND using Yafut 2023-04-18 13:53:04 +02:00
nand ath79: add support for ZTE MF282 2023-05-06 20:59:46 +02:00
patches-5.10 kernel: bump 5.10 to 5.10.179 2023-04-30 00:01:12 +02:00
patches-5.15 ath79: 5.15: drop unused res variable from pci ar724x OF convert patch 2023-05-12 03:15:34 +02:00
tiny treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
config-5.10
config-5.15
Makefile
modules.mk