]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
tools-testing-fix-phys_addr_t-size-on-64-bit-systems-fix
authorLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Tue, 22 Oct 2024 14:01:58 +0000 (15:01 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:12 +0000 (21:29 -0700)
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 <lorenzo.stoakes@oracle.com>
Cc: Jann Horn <jannh@google.com>
Cc: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/shared/shared.mk
tools/testing/vma/vma.c

index b37362224a7369ddf99a232ca8a2d9d76b5e4909..923ee2492256b693c5cf16cc014d9d2410be5457 100644 (file)
@@ -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: ;
index b33b47342d4182457ad26391b6844cdacd284250..8fab5e13c7c3bb6989dfefdd059caa7ceb0df919 100644 (file)
@@ -4,6 +4,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "generated/bit-length.h"
+
 #include "maple-shared.h"
 #include "vma_internal.h"