[PATCH v1] riscv: kvm: Use endian-specific __lelong for NACL shared memory
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Fri Jun 26 01:21:23 PDT 2026
Hello:
This patch was applied to riscv/linux.git (fixes)
by Anup Patel <anup at brainfault.org>:
On Mon, 8 Jun 2026 23:52:52 +0800 you wrote:
> When compiling with sparse enabled (C=2), bitwise type warnings are
> triggered in the RISC-V KVM implementation. This occurs because the
> user-space data unboxing macro '__get_user_asm' performs implicit
> casting on restricted types without forcing the compiler's compliance.
>
> Additionally, raw 'unsigned long *' pointers are used to access the
> SBI NACL shared memory, whereas the RISC-V SBI specification mandates
> that these structures must follow little-endian byte ordering.
>
> [...]
Here is the summary with links:
- [v1] riscv: kvm: Use endian-specific __lelong for NACL shared memory
https://git.kernel.org/riscv/c/52738352a6f2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the kvm-riscv
mailing list