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
..
2024-06-05 09:34:06 +02:00
2024-05-30 22:44:57 +02:00
2024-06-05 17:03:24 +02:00
2024-06-02 17:38:23 +02:00
2024-06-03 17:57:54 +02:00
2024-05-29 17:56:28 +02:00
2024-05-19 22:06:11 +02:00
2024-06-06 11:45:03 +02:00
2024-06-05 17:03:24 +02:00
2024-05-16 19:28:16 +02:00
2024-05-25 09:17:19 +02:00
2024-06-01 01:29:09 +02:00
2024-05-28 08:06:10 +02:00
2024-05-25 20:18:23 +02:00
2024-05-28 22:10:53 +02:00
2024-06-05 21:05:52 +01:00
2024-06-02 22:43:46 +02:00
2024-06-01 16:40:10 +01:00
2024-06-03 13:15:48 +02:00
2024-06-05 21:14:16 +02:00
2024-06-02 17:56:28 +02:00
2024-05-31 11:25:48 +02:00