Thread (6 messages) 6 messages, 3 authors, 2026-02-24

Re: [PATCH v2 2/3] firmware: exynos-acpm: Count number of commands in acpm_xfer

From: Tudor Ambarus <tudor.ambarus@linaro.org>
Date: 2026-02-19 11:59:33
Also in: linux-hardening, linux-samsung-soc, lkml, llvm


On 2/19/26 1:27 PM, Krzysztof Kozlowski wrote:
Struct acpm_xfer holds two buffers with u32 commands - rxd and txd - and
counts their size by rxlen and txlen.  "len" suffix is here ambiguous,
so could mean length of the buffer or length of commands, and these are
not the same since each command is u32.  Rename these to rxcnt and
txcnt, and change their usage to count the number of commands in each
buffer.

This will have a benefit of allowing to use __counted_by_ptr later.

Signed-off-by: Krzysztof Kozlowski <redacted>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>

Thank you!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help