Re: [PATCH v3] staging: vme_user: simplify bus number allocation using ffz()
From: Dan Carpenter
Date: Wed Dec 10 2025 - 06:17:52 EST
On Wed, Dec 10, 2025 at 10:00:24AM +0000, Dharanitharan R wrote:
> David Laight pointed out that the loop in vme_register_bridge()
> is effectively searching for the first zero bit in vme_bus_numbers.
> Add a check for vme_bus_numbers == ~0UL before calling ffz().
>
> Replace the manual loop with ffz() and use BIT(n) for consistency.
>
> Suggested-by: David Laight <david.laight.linux@xxxxxxxxx>
> Signed-off-by: Dharanitharan R <dharanitharan725@xxxxxxxxx>
> ---
You need to write a change log here after the --- cut off line.
https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/
This still doesn't apply.
regards,
dan carpenter