aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stackinit_kunit.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 07:33:47 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 07:33:47 +0100
commitf8da37e46253316d29a274a6747cb69007bc81f2 (patch)
treeaac031dca475c4ed8308696e151d55e7a1b94d8c /lib/stackinit_kunit.c
parentusb: typec: Add support for Parade PS8830 Type-C Retimer (diff)
parentLinux 6.14-rc3 (diff)
downloadlinux-f8da37e46253316d29a274a6747cb69007bc81f2.tar.gz
linux-f8da37e46253316d29a274a6747cb69007bc81f2.zip
Merge 6.14-rc3 into usb-next
We need the USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/stackinit_kunit.c')
-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;