[PATCH 0/2] memblock tests: fix BUILD=32 address conversions

From: Tianyi Chen

Date: Wed Sep 16 2026 - 12:34:50 EST


Fix two BUILD=32 failures: truncating a physical address before freeing
it, and sign-extending simulated memory addresses. Existing assertions
cover both regressions.

The runner passes with GCC in both allocation directions across 32-bit
builds, 32-bit phys_addr_t, and NUMA configurations. BUILD=32 NUMA=1 also
passes with Clang.

Tianyi Chen (2):
memblock tests: use physical free for the maximum-address check
memblock tests: zero-extend simulated memory addresses

tools/testing/memblock/tests/basic_api.c | 6 +++---
tools/testing/memblock/tests/common.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)


base-commit: 5728d3523f12826a2b180c1c5738f74e33197e14
--
2.55.0