-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generic: routerbootpart: fix compilation on 64-bit #15640
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
kernel
pull request/issue with Linux kernel related changes
label
Jun 6, 2024
ACK |
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: openwrt#15640 Signed-off-by: Robert Marko <robimarko@gmail.com>
robimarko
force-pushed
the
routerboot-parser
branch
from
June 6, 2024 09:45
a7e459d
to
458cafd
Compare
Thanks! Rebased on top of main and merged! |
Vladdrako
pushed a commit
to Vladdrako/openwrt
that referenced
this pull request
Jun 8, 2024
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: openwrt#15640 Signed-off-by: Robert Marko <robimarko@gmail.com>
RolandoMagico
pushed a commit
to RolandoMagico/openwrt
that referenced
this pull request
Aug 11, 2024
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: openwrt#15640 Signed-off-by: Robert Marko <robimarko@gmail.com>
c-herz
pushed a commit
to c-herz/openwrt
that referenced
this pull request
Sep 5, 2024
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: openwrt#15640 Signed-off-by: Robert Marko <robimarko@gmail.com>
dzzinstant
pushed a commit
to dzzinstant/openwrt
that referenced
this pull request
Sep 9, 2024
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: openwrt#15640 Signed-off-by: Robert Marko <robimarko@gmail.com>
dzzinstant
pushed a commit
to dzzinstant/openwrt
that referenced
this pull request
Sep 9, 2024
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: openwrt#15640 Signed-off-by: Robert Marko <robimarko@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trying to compile routerbootpart parsers on 64-bit platforms will fail:
So, lets simply add the length modifier 'z' to fix compilation.
@f00b4r0