[PATCH 1/1] arm: provide noncached_set_region prototype to fix build

Tom Rini trini at konsulko.com
Wed Oct 16 19:44:59 CEST 2024


On Wed, Oct 16, 2024 at 01:24:55PM +0200, Jonas Jelonek wrote:

> Due to the removal of weak functions in 7d6cee2cd0 ("cmd: cache: Remove
> weak function"), uboot fails to compile after updating to v2024.10 for

Should be "U-Boot" but I can fix that on applying.

> mediatek target in OpenWrt with GCC-14 with error:
> cmd/cache.c: In function 'do_dcache':
> cmd/cache.c:57:25: error: implicit declaration of function
> 	'noncached_set_region' [-Wimplicit-function-declaration]
> 
> Thus, provide a prototype in arm's include/asm/system.h to fix a build
> error in cmd/cache.c, since related prototypes are also located there.
> Also add an include of asm/system.h in cmd/cache.c to have the function
> available there.
> 
> The issue occured after the update of uboot-mediatek in OpenWrt to
> v2024.10, in combination with GCC-14 toolchain. It was reported and
> discussed in https://github.com/openwrt/openwrt/issues/16697, and
> temporarily fixed with
> https://github.com/openwrt/openwrt/commit/92ca322dd1f48158b8829fec59319a12e4ae4295.
> 
> Signed-off-by: Jonas Jelonek <jelonek.jonas at gmail.com>
> Cc: Tom Rini <trini at konsulko.com>

Thanks!

Reviewed-by: Tom Rini <trini at konsulko.com>
Link: https://github.com/openwrt/openwrt/issues/16697
Link: https://github.com/openwrt/openwrt/commit/92ca322dd1f48158b8829fec59319a12e4ae4295
Fixes: 7d6cee2cd0 ("cmd: cache: Remove weak function")

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241016/48a1cdd3/attachment.sig>


More information about the U-Boot mailing list