Re: [PATCH v2 0/4] memblock tests: fix BUILD=32 address conversions and warnings
From: Mike Rapoport
Date: Thu Sep 24 2026 - 04:04:20 EST
On Wed, 23 Sep 2026 11:31:22 +0900, Tianyi Chen wrote:
> memblock tests: fix BUILD=32 address conversions and warnings
>
> Fix the BUILD=32 physical-address truncation and sign-extension failures,
> and address the remaining GCC warnings reported during review.
>
> Changes in v2:
> - Use memblock_phys_free() for all synthetic physical ranges in the basic
> API tests, not only the maximum-address check.
> - Keep the dummy-memory address conversion fix unchanged.
> - Use __pa() in tools virt_to_phys() to avoid a pointer-size warning and
> sign extension of 32-bit pointers with their top bit set.
> - Initialize end_rgn to avoid GCC's maybe-uninitialized warning.
>
> [...]
Applied to for-next branch of memblock.git tree, thanks!
[1/4] memblock tests: use physical addresses for region removal
commit: 9357596afac61154e7f54048c0add9f1293b9eba
[2/4] memblock tests: zero-extend simulated memory addresses
commit: 6957416ae43de1830174f527b5b8cf737401a8dd
[3/4] tools: use __pa() in virt_to_phys()
commit: a10f3a08d248fcb3006f587faf42437837fd12c6
[4/4] memblock: initialize the region merge end index
commit: ba94f68b754985f77c3f6d3354df74952a1e0752
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock
branch: for-next
--
Sincerely yours,
Mike.