diff options
author | Uladzislau Koshchanka <koshchanka@gmail.com> | 2022-12-10 03:44:23 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-12-12 15:06:30 -0800 |
commit | 1280d4b76f3402645aa7075a53f49a3a14be07a8 (patch) | |
tree | 840f4a95bb00cfadae979d48e7da568c6746b694 /lib/Kconfig | |
parent | 93e637a37b2872c2fce6ce4df6e59cdc2fe8ca5e (diff) | |
download | linux-stable-1280d4b76f3402645aa7075a53f49a3a14be07a8.tar.gz linux-stable-1280d4b76f3402645aa7075a53f49a3a14be07a8.tar.bz2 linux-stable-1280d4b76f3402645aa7075a53f49a3a14be07a8.zip |
lib: packing: replace bit_reverse() with bitrev8()
Remove bit_reverse() function. Instead use bitrev8() from linux/bitrev.h +
bitshift. Reduces code-repetition.
Signed-off-by: Uladzislau Koshchanka <koshchanka@gmail.com>
Link: https://lore.kernel.org/r/20221210004423.32332-1-koshchanka@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 9bbf8a4b2108..cc969ef58a2a 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -24,6 +24,7 @@ config LINEAR_RANGES config PACKING bool "Generic bitfield packing and unpacking" + select BITREVERSE default n help This option provides the packing() helper function, which permits |