Re: [PATCH -next v2 RESEND] printk: Use the BITS_PER_LONG macro

From: Petr Mladek
Date: Wed Sep 04 2024 - 06:04:57 EST


On Tue 2024-09-03 11:53:58, Jinjie Ruan wrote:
> sizeof(unsigned long) * 8 is the number of bits in an unsigned long
> variable, replace it with BITS_PER_LONG macro to make it simpler.
>
> Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

JFYI, the patch has been committed into printk/linux.git,
branch rework/write_atomic. It is intended for 6.12 merge window.

I have chosen this branch because it modified the list of included
files in kernel/printk/printk_ringbuffer.h as well. It allowed to apply
the patch without conflicts.

Best Regards,
Petr