]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/bitops: Switch to generic fls(), fls64(), etc.
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 22 Sep 2025 11:40:19 +0000 (13:40 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 24 Sep 2025 14:24:17 +0000 (16:24 +0200)
commit7b80a23c0e33ae5a3ae68e0cf5b5a59e8a368c37
tree1c350ab7b3c27e5e03bb52aded5066e2871c7c8d
parent5671ce2a1fc6b4a16cff962423bc416b92cac3c8
s390/bitops: Switch to generic fls(), fls64(), etc.

Switch to generic fls(), fls64(), etc. which are implemented with
__builtin_ctzl(), __builtin_clzl().
Those builtins are available for all supported compilers.

Kernel image size is reduced by ~10kb (gcc 15.1.0 + defconfig).

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/bitops.h