linux/kernel.h: Update upper_NN_bits() and lower_NN_bits() macros
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 22 Sep 2025 12:29:22 +0000 (14:29 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 3 Oct 2025 22:55:18 +0000 (16:55 -0600)
commit70ae44f3713427be5368d0829b97cafbd01ef1f5
tree0df0214263f95fd952d55f3243d196fd73f6451e
parent8fd3768ca1683b45aeb5662094de6bcffdb7735b
linux/kernel.h: Update upper_NN_bits() and lower_NN_bits() macros

Synchronize upper_NN_bits() and lower_NN_bits() macros with Linux 6.16
commit 118d777c4cb4 ("wordpart.h: Add REPEAT_BYTE_U32()"). This fixes the
lower_32_bits() macros and assures it works with 64bit systems correctly.
This also adds 16bit variants of these macros, which will be used by the
Airoha PHY driver.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/linux/kernel.h