summaryrefslogtreecommitdiff
path: root/arch/s390/lib/test_modules_helpers.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-31 10:13:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-31 10:13:10 +0100
commit60c250a98d4ca12a34a89a498cb05d4d221f2f19 (patch)
treef73a2201c64cb9c86fd4d78eac442548bc6df590 /arch/s390/lib/test_modules_helpers.c
parent993a44fa85c1ea5989fb5c46236ca2e3cfd71b78 (diff)
parent26291c54e111ff6ba87a164d85d4a4e134b7315c (diff)
Merge tag 'v5.17-rc2' into usb-next
We need the USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/s390/lib/test_modules_helpers.c')
-rw-r--r--arch/s390/lib/test_modules_helpers.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/s390/lib/test_modules_helpers.c b/arch/s390/lib/test_modules_helpers.c
new file mode 100644
index 0000000000000..1670349a03eba
--- /dev/null
+++ b/arch/s390/lib/test_modules_helpers.c
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+#include <linux/export.h>
+
+#include "test_modules.h"
+
+#define DEFINE_RETURN(i) \
+ int test_modules_return_ ## i(void) \
+ { \
+ return 1 ## i - 10000; \
+ } \
+ EXPORT_SYMBOL_GPL(test_modules_return_ ## i)
+REPEAT_10000(DEFINE_RETURN);