Skip to content

Commit 2a7ceac

Browse files
drobnikrppt
authored andcommitted
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 <[email protected]> Signed-off-by: Mike Rapoport <[email protected]>
1 parent f30b002 commit 2a7ceac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/testing/memblock/scripts/Makefile.include

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ ifeq ($(MOVABLE_NODE), 1)
1111
CFLAGS += -D MOVABLE_NODE
1212
endif
1313

14-
# Use 32 bit physical addresses
14+
# Use 32 bit physical addresses.
15+
# Remember to install 32-bit version of dependencies.
1516
ifeq ($(32BIT_PHYS_ADDR_T), 1)
16-
CFLAGS += -U CONFIG_PHYS_ADDR_T_64BIT
17+
CFLAGS += -m32 -U CONFIG_PHYS_ADDR_T_64BIT
18+
LDFLAGS += -m32
1719
endif

0 commit comments

Comments
 (0)