]> git.baikalelectronics.ru Git - uboot.git/commit
image: fit: Use stack allocation macro
authorJoel Stanley <joel@jms.id.au>
Mon, 20 Jun 2022 07:01:17 +0000 (16:31 +0930)
committerTom Rini <trini@konsulko.com>
Fri, 1 Jul 2022 20:01:25 +0000 (16:01 -0400)
commitbddc392545bb033f8388c1325d7ec88493a65c05
tree4bf4fe415bec0ff55e76cf20a63eecca7e37d6a1
parent8b5ffd77b7237ad3d22de02b4a9a26d1c29a303d
image: fit: Use stack allocation macro

The documentation above the DEFINE_ALIGN_BUFFER says it's for use
outside functions, but we're inside one.

Instead use ALLOC_CACHE_ALIGN_BUFFER, the stack based macro, which also
includes the cache alignment.

Fixes: 4ec8564f5550 ("image: fit: Align hash output buffers")
Signed-off-by: Joel Stanley <joel@jms.id.au>
Tested-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
boot/image-fit.c
tools/mkimage.h