From: sashiko-bot@kernel.org
To: "Yury Norov" <ynorov@nvidia.com>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH 4/6] arch/riscv: Add bitrev.h file to support rev8 and brev8
Date: Fri, 01 May 2026 21:15:33 +0000 [thread overview]
Message-ID: <20260501211534.6F913C2BCB8@smtp.kernel.org> (raw)
In-Reply-To: <20260430211351.658193-5-ynorov@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Selecting GENERIC_BITREVERSE without satisfying its dependency causes a Kconfig unmet dependency warning.
--
commit b26322371528c694cf7ce4bf22b509fc4ef43133
Author: Jinjie Ruan <ruanjinjie@huawei.com>
arch/riscv: Add bitrev.h file to support rev8 and brev8
This commit adds <asm/bitrev.h> to efficiently implement bit reversal
using the 'rev8' and 'brev8' instructions from the RISC-V Zbkb extension.
It updates Kconfig to select GENERIC_BITREVERSE and HAVE_ARCH_BITREVERSE
to utilize these hardware instructions.
Link: https://docs.riscv.org/reference/isa/unpriv/b-st-ext.html
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index d235396c45141..d32309846fa31 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -104,6 +104,7 @@ config RISCV
> select FUNCTION_ALIGNMENT_8B if DYNAMIC_FTRACE_WITH_CALL_OPS
> select GENERIC_ARCH_TOPOLOGY
> select GENERIC_ATOMIC64 if !64BIT
> + select GENERIC_BITREVERSE
Will this select introduce a Kconfig unmet dependency regression?
In lib/Kconfig, GENERIC_BITREVERSE explicitly depends on BITREVERSE.
Selecting a symbol directly without also satisfying its dependencies forces
the target symbol on, which causes Kconfig warnings at build time when
BITREVERSE is disabled (for example, during allnoconfig builds).
Could this select also include BITREVERSE to satisfy the dependency chain?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260430211351.658193-1-ynorov@nvidia.com?part=4
next prev parent reply other threads:[~2026-05-01 21:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-30 21:13 [PATCH 0/6] lib: rework bitreverse Yury Norov
2026-04-30 21:13 ` [PATCH 1/6] lib: include crc32.h conditionally on CONFIG_CRC32 Yury Norov
2026-05-01 21:15 ` sashiko-bot
2026-05-04 8:03 ` Arnd Bergmann
2026-05-04 12:43 ` David Laight
2026-05-04 16:46 ` Yury Norov
2026-05-04 17:18 ` Arnd Bergmann
2026-05-04 18:32 ` Yury Norov
2026-05-04 19:05 ` Arnd Bergmann
2026-05-05 19:03 ` Yury Norov
2026-05-06 6:30 ` Eric Biggers
2026-04-30 21:13 ` [PATCH 2/6] lib/bitrev: Introduce GENERIC_BITREVERSE and cleanup Kconfig Yury Norov
2026-05-01 21:15 ` sashiko-bot
2026-04-30 21:13 ` [PATCH 3/6] bitops: Define generic __bitrev8/16/32 for reuse Yury Norov
2026-05-01 21:15 ` sashiko-bot
2026-04-30 21:13 ` [PATCH 4/6] arch/riscv: Add bitrev.h file to support rev8 and brev8 Yury Norov
2026-05-01 21:15 ` sashiko-bot [this message]
2026-04-30 21:13 ` [PATCH 5/6] lib: compile generic bitrev.c conditionally on GENERIC_BITREVERSE Yury Norov
2026-05-01 21:15 ` sashiko-bot
2026-04-30 21:13 ` [PATCH 6/6] MAINTAINERS: BITOPS: include bitrev.[ch] Yury Norov
2026-05-02 1:40 ` [PATCH 0/6] lib: rework bitreverse Yury Norov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260501211534.6F913C2BCB8@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=sashiko@lists.linux.dev \
--cc=ynorov@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox