Files
Khem Raj 0d157ff168 tcmu-runner: Fix build on 32-bit targets with clang
tcmu_lba_to_byte() returns uint64_t while size_t is 32-bit on ILP32
targets, so the type-checking min() macro fails with
-Werror,-Wcompare-distinct-pointer-types. Compare in 64 bits; the
result never exceeds length, so it still fits in size_t.

Build-tested for qemuriscv32 (musl, clang).

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-10-18 12:39:53 -07:00
..