Re: [PATCH v3] staging: vme_user: simplify bus number allocation using ffz()
From: Dan Carpenter
Date: Wed Dec 10 2025 - 04:51:13 EST
On Wed, Dec 10, 2025 at 09:42:08AM +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>
> ---
The patch is corrupted somehow and doesn't apply.
patching file drivers/staging/vme_user/vme.c
patch: **** malformed patch at line 204: return ret;
regards,
dan carpenter