]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
printk: Use the BITS_PER_LONG macro
authorJinjie Ruan <ruanjinjie@huawei.com>
Tue, 3 Sep 2024 03:53:58 +0000 (11:53 +0800)
committerPetr Mladek <pmladek@suse.com>
Wed, 4 Sep 2024 09:57:48 +0000 (11:57 +0200)
commit85a147a986e4feafb9286fabaf03a302a611cd85
treeba7b3a629e1d27245ced2c98c2c8c39de6c1f971
parent59cd94ef80094857f0d0085daa2e32badc4cddf4
printk: Use the BITS_PER_LONG macro

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@huawei.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240903035358.308482-1-ruanjinjie@huawei.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk_ringbuffer.h