[PATCH] scsi: Make static functions consistent using lbaint_t

Tom Rini trini at konsulko.com
Mon Jul 7 21:58:45 CEST 2025


On Mon, Jul 07, 2025 at 03:12:20PM +0100, Andrew Goodbody wrote:

> The static helper functions are inconsistent in their use of their third
> parameter which is used to pass a block count. Keep consistency by
> always using lbaint_t here. This will fix an issue where two left shifts
> were overflowing the variable type in use.
> 
> This issue found by Smatch
> 
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250707/7bcc4a7b/attachment.sig>


More information about the U-Boot mailing list