summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig
diff options
context:
space:
mode:
authorUladzislau Koshchanka <koshchanka@gmail.com>2022-12-10 01:44:23 +0100
committerJakub Kicinski <kuba@kernel.org>2022-12-13 00:06:30 +0100
commit1280d4b76f3402645aa7075a53f49a3a14be07a8 (patch)
tree840f4a95bb00cfadae979d48e7da568c6746b694 /lib/Kconfig
parentdt-bindings: net: dsa: hellcreek: Sync DSA maintainers (diff)
downloadlinux-1280d4b76f3402645aa7075a53f49a3a14be07a8.tar.xz
linux-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/Kconfig1
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