Re: [PATCH v2 1/3] lib/find_bit: introduce FIND_FIRST_BIT() macro

From: Linus Torvalds
Date: Wed Aug 24 2022 - 14:01:29 EST


On Tue, Aug 23, 2022 at 6:26 PM Yury Norov <yury.norov@xxxxxxxxx> wrote:
>
> +
> +#ifndef word_op
> +#define word_op
> +#endif
> +
> +#define FIND_FIRST_BIT(EXPRESSION, size) \

Please just make 'word_op' be an macro argument, the same way 'EXPRESSION' is.

That way the LE/BE cases can be handled without any odd tricks.

Linus