From: Lorenzo Stoakes Date: Tue, 22 Oct 2024 14:01:58 +0000 (+0100) Subject: tools-testing-fix-phys_addr_t-size-on-64-bit-systems-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a1d3164e19cdc12db51cabb24900e3a554b67e0a;p=users%2Fjedix%2Flinux-maple.git tools-testing-fix-phys_addr_t-size-on-64-bit-systems-fix VMA tests are not properly importing the bit-length.h header (the radix tree tests do appear to be) and we are overwriting that constant. Link: https://lkml.kernel.org/r/a6183df9-3108-4d59-8128-4fc6c14e22a5@lucifer.local Signed-off-by: Lorenzo Stoakes Cc: Jann Horn Cc: Liam R. Howlett Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- diff --git a/tools/testing/shared/shared.mk b/tools/testing/shared/shared.mk index b37362224a736..923ee2492256b 100644 --- a/tools/testing/shared/shared.mk +++ b/tools/testing/shared/shared.mk @@ -69,7 +69,7 @@ generated/bit-length.h: FORCE @if ! grep -qws CONFIG_$(LONG_BIT)BIT generated/bit-length.h; then \ echo "Generating $@"; \ echo "#define CONFIG_$(LONG_BIT)BIT 1" > $@; \ - echo "#define CONFIG_PHYS_ADDR_T_$(LONG_BIT)BIT 1" > $@; \ + echo "#define CONFIG_PHYS_ADDR_T_$(LONG_BIT)BIT 1" >> $@; \ fi FORCE: ; diff --git a/tools/testing/vma/vma.c b/tools/testing/vma/vma.c index b33b47342d418..8fab5e13c7c3b 100644 --- a/tools/testing/vma/vma.c +++ b/tools/testing/vma/vma.c @@ -4,6 +4,8 @@ #include #include +#include "generated/bit-length.h" + #include "maple-shared.h" #include "vma_internal.h"