]> git.ipfire.org Git - people/ms/u-boot.git/commit
fs/fat: Fix 'CACHE: Misaligned operation at range' warnings
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Sat, 30 Sep 2017 23:25:21 +0000 (02:25 +0300)
committerTom Rini <trini@konsulko.com>
Sun, 8 Oct 2017 20:19:56 +0000 (16:19 -0400)
commit09fa964bba80c45432660f0e64362181900a5aef
treeba58a46efcc9c227cfa0cb6c683841bee54ce9ef
parent99e46dfc6a9176f6f0680c9dfdf33c97d56336ce
fs/fat: Fix 'CACHE: Misaligned operation at range' warnings

The 'block' field of fat_itr needs to be properly aligned for DMA and
while it does have '__aligned(ARCH_DMA_MINALIGN)', the fat_itr structure
itself needs to be properly aligned as well.

While at it use malloc_cache_aligned() for the other aligned allocations
in the file as well.

Fixes: 2460098cffacd1 ("fs/fat: Reduce stack usage")
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Reviewed-by: Tom Rini <trini@konsulko.com>
fs/fat/fat.c