aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/lib/test_modules_helpers.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-01-28 18:50:05 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2022-01-28 18:50:05 +0200
commit7eb36254898131ef2feed7629ae93bc6a2c56d18 (patch)
treec406fdf4c90626baaa80c820c0ec38426b02dce6 /arch/s390/lib/test_modules_helpers.c
parent8157f4707360a17027538fa43b1b89b534c65eb9 (diff)
parent663d34c8df98740f1e90241e78e456d00b3c6cad (diff)
downloadlinux-7eb36254898131ef2feed7629ae93bc6a2c56d18.tar.gz
linux-7eb36254898131ef2feed7629ae93bc6a2c56d18.tar.bz2
linux-7eb36254898131ef2feed7629ae93bc6a2c56d18.zip
Merge tag 's390-5.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Vasily Gorbik: - Fix loading of modules with lots of relocations and add a regression test for it. - Fix machine check handling for vector validity and guarded storage validity failures in KVM guests. - Fix hypervisor performance data to include z/VM guests with access control group set. - Fix z900 build problem in uaccess code. - Update defconfigs. * tag 's390-5.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/hypfs: include z/VM guests with access control group set s390: update defconfigs s390/module: test loading modules with a lot of relocations s390/module: fix loading modules with a lot of relocations s390/uaccess: fix compile error s390/nmi: handle vector validity failures for KVM guests s390/nmi: handle guarded storage validity failures for KVM guests
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 000000000000..1670349a03eb
--- /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);