summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorTianyi Chen <hi@tychen.cc>2026-09-23 11:31:24 +0900
committerMike Rapoport (Microsoft) <rppt@kernel.org>2026-09-24 10:57:03 +0300
commit6957416ae43de1830174f527b5b8cf737401a8dd (patch)
tree2400663c04d07de2cd6cc5f9338690769028989f /tools/lib/python/kdoc/python_version.py
parent9357596afac61154e7f54048c0add9f1293b9eba (diff)
downloadlinux-next-6957416ae43de1830174f527b5b8cf737401a8dd.tar.gz
linux-next-6957416ae43de1830174f527b5b8cf737401a8dd.zip
memblock tests: zero-extend simulated memory addresses
Converting a 32-bit pointer directly to the 64-bit phys_addr_t can sign-extend it when BUILD=32 is used. A dummy allocation above 2 GiB then gets registered at an address different from its unsigned pointer value. The low-address tests compare that value against the registered range and fail once the earlier maximum-address free test is fixed. Convert through uintptr_t when registering and reporting dummy memory. This preserves the pointer bits and agrees with the simulator __pa() conversion and the allocation tests. Assisted-by: LLM Signed-off-by: Tianyi Chen <hi@tychen.cc> Link: https://patch.msgid.link/20260923023126.1910311-3-hi@tychen.cc Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions