arm: provide noncached_set_region prototype to fix build
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | arm: provide noncached_set_region prototype to fix buildarch/ cmd/ | +2 | 1 reply |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Tom Rini |
|---|---|
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/1] arm: provide noncached_set_region prototype to fix build
In OpenWrt project, an issue recently occured after updating u-boot for mediatek to v2024.10. When building with GCC-14 toolchain, it fails with:cmd/cache.c: In function 'do_dcache':cmd/cache.c:57:25: error: implicit declaration of function
'noncached_set_region' [-Wimplicit-function-declaration]
It is presumably caused by commit 7d6cee2cd0 ("cmd: cache: Remove weak functions") which removes the prototypes. Arm architecture provides an implementation for 'noncached_set_region', however it is not available to 'cmd/cache.c'.
The issue was already discussed in
https://github.com/openwrt/openwrt/issues/16697
and temporarily fixed downstream in
https://github.com/openwrt/openwrt/commit/92ca322dd1f48158b8829fec59319a12e4ae4295.
Another user reported the issue in u-boot too, and confirmed the solution working (https://source.denx.de/u-boot/u-boot/-/issues/42).
I'd like to discuss here if this is a proper solution to the issue or if there is a better proposal. Since this is my first contribution, I have barely an overview of the u-boot internals.
Please give also hints regarding any wording or explanations in the commit message.
---
Jonas Jelonek (1):
arm: provide noncached_set_region prototype to fix build
arch/arm/include/asm/system.h | 1 + cmd/cache.c | 1 + 2 files changed, 2 insertions(+)
Signature · 1 line
2.39.5 (Apple Git-154)