aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
authorYury Norov <ynorov@nvidia.com>2026-05-06 13:52:02 -0400
committerYury Norov <ynorov@nvidia.com>2026-05-28 11:39:16 -0400
commit42d9c75e8b9cae9583c228617be38ab1637fd574 (patch)
tree4cd6148d91e8cd2e3f3aa1481d0596d681d4884c /lib
parent8f4c4562c454c138b8f4db124f03a4ca29750277 (diff)
downloadlinux-next-history-42d9c75e8b9cae9583c228617be38ab1637fd574.tar.gz
arch: select HAVE_ARCH_BITREVERSE conditionally on BITREVERSE
Architectures may have bit reversal instructions, but if the API not needed, the corresponding option should not be selected because it may lead to generating the unneeded code. Signed-off-by: Yury Norov <ynorov@nvidia.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 00a9509636c18..d8e7e89ae3205 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -58,6 +58,7 @@ config BITREVERSE
config HAVE_ARCH_BITREVERSE
bool
default n
+ depends on BITREVERSE
help
This option enables the use of hardware bit-reversal instructions on
architectures which support such operations.