summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2025-03-16 12:02:46 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2025-03-16 12:02:46 +1100
commitff443fb402e95f5095dde3c64f7c3249d7c6f993 (patch)
treefac700d27838ff41a7308dc217551253a1e2b0df /lib
parent772ba9b5bd2701a9967c084b66ff1daaee0367eb (diff)
parenteff2eb592efd73f00590d578c3d6021f604df62c (diff)
Merge branch 'fixes' into topic/cxl
Merge our fixes branch to bring in the changes to the CXL documentation that the CXL removal patch depends on.
Diffstat (limited to 'lib')
-rw-r--r--lib/stackinit_kunit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stackinit_kunit.c b/lib/stackinit_kunit.c
index fbe910c9c825..135322592faf 100644
--- a/lib/stackinit_kunit.c
+++ b/lib/stackinit_kunit.c
@@ -75,8 +75,10 @@ static bool stackinit_range_contains(char *haystack_start, size_t haystack_size,
*/
#ifdef CONFIG_M68K
#define FILL_SIZE_STRING 8
+#define FILL_SIZE_ARRAY 2
#else
#define FILL_SIZE_STRING 16
+#define FILL_SIZE_ARRAY 8
#endif
#define INIT_CLONE_SCALAR /**/
@@ -345,11 +347,11 @@ union test_small_start {
short three;
unsigned long four;
struct big_struct {
- unsigned long array[8];
+ unsigned long array[FILL_SIZE_ARRAY];
} big;
};
-/* Mismatched sizes, with one and two being small */
+/* Mismatched sizes, with three and four being small */
union test_small_end {
short one;
unsigned long two;