Re: [PATCH] riscv: mm: fix truncates issue on RV32
From: patchwork-bot+linux-riscv
Date: Wed Jul 12 2023 - 12:00:30 EST
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@xxxxxxxxxxxx>:
On Mon, 10 Jul 2023 01:10:36 +0800 you wrote:
> lkp reports below sparse warning when building for RV32:
> arch/riscv/mm/init.c:1204:48: sparse: warning: cast truncates bits from
> constant value (100000000 becomes 0)
>
> IMO, the reason we didn't see this truncates bug in real world is "0"
> means MEMBLOCK_ALLOC_ACCESSIBLE in memblock and there's no RV32 HW
> with more than 4GB memory.
>
> [...]
Here is the summary with links:
- riscv: mm: fix truncates issue on RV32
https://git.kernel.org/riscv/c/b690e266dae2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html