openwrt/target/linux/generic
Robert Marko 458cafd0d0 generic: routerbootpart: fix compilation on 64-bit
Trying to compile routerbootpart parsers on 64-bit platforms will fail:
drivers/mtd/parsers/routerbootpart.c: In function 'routerboot_find_dynparts':
./include/linux/kern_levels.h:5:25: error: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
./include/linux/printk.h:427:25: note: in definition of macro 'printk_index_wrap'
  427 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
./include/linux/printk.h:498:9: note: in expansion of macro 'printk'
  498 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~
./include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
./include/linux/printk.h:498:16: note: in expansion of macro 'KERN_ERR'
  498 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                ^~~~~~~~
drivers/mtd/parsers/routerbootpart.c:170:25: note: in expansion of macro 'pr_err'
  170 |                         pr_err("%s: mtd_read error while parsing (offset: 0x%X): %d\n",

So, lets simply add the length modifier 'z' to fix compilation.

Link: https://github.com/openwrt/openwrt/pull/15640
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-06-06 11:45:03 +02:00
..
backport-5.15 kernel: bump 5.15 to 5.15.158 2024-05-12 12:16:18 +02:00
backport-6.1 generic: 6.1, 6.6: replace Airoha EN8811H PHY driver with upstream 2024-05-08 01:54:32 +01:00
backport-6.6 generic: 6.6: net: sfp-bus: fix SFP mode detect from bitrate 2024-05-30 12:06:26 +01:00
files generic: routerbootpart: fix compilation on 64-bit 2024-06-06 11:45:03 +02:00
hack-5.15 kernel: bump 5.15 to 5.15.157 2024-05-11 18:30:30 +02:00
hack-6.1 kernel: bump 6.1 to 6.1.89 2024-04-30 20:18:15 +02:00
hack-6.6 kernel: add missing patch header 2024-05-30 10:49:46 +01:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-5.15 generic: 5.15, 6.1: use RTL_8221B_VB_CG_PHYID in Realtek PHY detection 2024-05-13 20:27:25 +02:00
pending-6.1 generic: 5.15, 6.1: use RTL_8221B_VB_CG_PHYID in Realtek PHY detection 2024-05-13 20:27:25 +02:00
pending-6.6 generic: backport accepted and pending patches for mtk_eth_soc 2024-05-30 10:49:59 +01:00
config-5.15 kernel: bump 5.15 to 5.15.157 2024-05-11 18:30:30 +02:00
config-6.1 kernel: Add missing config option 2024-04-15 22:50:34 +02:00
config-6.6 generic: kernel add 6.6 missing symbols 2024-05-25 20:18:23 +02:00
config-filter generic: filter out CONFIG_FRAME_WARN 2023-07-01 11:52:07 +02:00
PATCHES