[PATCH v2 1/6] sandbox: add generic find_next_zero_bit implementation

Simon Glass sjg at chromium.org
Wed Dec 13 20:50:08 CET 2023


Hi,

On Tue, 12 Dec 2023 at 01:53, <lukas.funke-oss at weidmueller.com> wrote:
>
> From: Lukas Funke <lukas.funke at weidmueller.com>
>
> Add generic 'find_next_zero_bit' implementation in order to enable the
> use of the 'for_each_set_bitrange' macro. The implementation is currently
> missing for the sandbox-arch and using the function results in a linker
> error.
>
> There are more efficient implementations in the architecture specific
> implementations. However, for the sandbox the implementation should be
> simple and portable.
>
> Signed-off-by: Lukas Funke <lukas.funke at weidmueller.com>
> ---
>
> (no changes since v1)
>
>  arch/sandbox/include/asm/bitops.h | 16 ++++++++++++++--
>  1 file changed, 14 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

If you wrote this yourself, this is fine. If it came from Linux, etc.
then please add mention of that.

Regards,
Simon


More information about the U-Boot mailing list