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)
commitc5e2442033d9afe67b1913e192b0eafa74eef856
tree4bf4fe415bec0ff55e76cf20a63eecca7e37d6a1
parent975918f6a14374f21f094ed5f5262e959190a9d2
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: b583348ca8c8 ("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