memblock tests: Fix testing with 32-bit physical addresses
authorKarolina Drobnik <karolinadrobnik@gmail.com>
Fri, 4 Mar 2022 12:52:49 +0000 (13:52 +0100)
committerMike Rapoport <rppt@linux.ibm.com>
Sat, 5 Mar 2022 17:46:46 +0000 (19:46 +0200)
commit2a7ceac9e58167fadc3496c5f694543d4bbe03ef
tree4aa31c0d8bf1314873630d3c1ea90879d39d15be
parentf30b002ccfee8c60c8feb590e145c0b5e8fa4c67
memblock tests: Fix testing with 32-bit physical addresses

Building memblock simulator on x86_64 with 32BIT_PHYS_ADDR_T=1
produces "cast to pointer from integer of different size" warnings.
Fix them by building the binary in 32-bit environment when using
32-bit physical addresses.

Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
tools/testing/memblock/scripts/Makefile.include