uboot-mediatek: add noncached_set_region prototype to fix build
authorJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 15 Oct 2024 18:52:35 +0000 (20:52 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 16 Oct 2024 02:23:33 +0000 (03:23 +0100)
commit92ca322dd1f48158b8829fec59319a12e4ae4295
treeac072f6b3d63975f331cd6165c0d6b7b33ed622f
parent7e51d6a4c85de575654c49f410ce3e173176d1a9
uboot-mediatek: add noncached_set_region prototype to fix build

Building uboot-mediatek fails with GCC-14, uboot v2024.10 and
CONFIG_SYS_NONCACHED_MEMORY defined 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]

This is caused by upstream commit 7d6cee2cd0e2e2507aca1e3a6fe0e2cb241a116e
("cmd: cache: Remove weak functions") as this removes weak functions in
favor of arch-specific definitions.

This patch adds the function prototype for `noncached_set_region` to
arch-specific header for ARM. It also adds an include in cmd/cache.c to
make the function available there.

Fixes: #16697
Fixes: f8c22c9bff ("uboot-mediatek: update to U-Boot 2024.10")
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
[@dangowrt refreshed patch]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/uboot-mediatek/patches/455-arm-provide-noncached_set_region-prototype-to-fix-build.patch [new file with mode: 0644]