kernel: fix warning when building fitblk on 32-bit platforms
authorDaniel Golle <daniel@makrotopia.org>
Sat, 24 Feb 2024 03:32:13 +0000 (03:32 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 24 Feb 2024 03:34:27 +0000 (03:34 +0000)
commit360d27eb76f09f310a47e81c8d2ef07897255fc1
treecd4f76a12878125617ce201406fa91ca8e947f99
parent6368ed1ae5b628898b33273c8950f7b7575e4414
kernel: fix warning when building fitblk on 32-bit platforms

Kernel warns about comparision of different types without cast when
building the fitblk driver on 32-bit platforms.
Fix this by using `min_t(size_t, ...`.

Fixes: 8fc5457869 ("kernel: add pending fitblk uImage.FIT sub-image block driver")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/pending-6.1/510-block-add-uImage.FIT-subimage-block-driver.patch