mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-17 13:34:14 +00:00
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.
Fix it anyway to make sparse happy.
Fixes:
|
||
|---|---|---|
| .. | ||
| cacheflush.c | ||
| context.c | ||
| dma-noncoherent.c | ||
| extable.c | ||
| fault.c | ||
| hugetlbpage.c | ||
| init.c | ||
| kasan_init.c | ||
| Makefile | ||
| pageattr.c | ||
| pgtable.c | ||
| physaddr.c | ||
| pmem.c | ||
| ptdump.c | ||
| tlbflush.c | ||