diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2022-01-31 14:17:11 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2022-02-06 23:30:37 +0100 |
commit | e286f231eab410793f3e91c924e6dbd23edee05a (patch) | |
tree | 7caed77f92188b718898287e2e7313f5028d2483 /arch/s390/lib/test_modules.h | |
parent | 72fc40931d7a488e1646d04f988f4d5a97b02100 (diff) | |
download | linux-e286f231eab410793f3e91c924e6dbd23edee05a.tar.gz linux-e286f231eab410793f3e91c924e6dbd23edee05a.tar.bz2 linux-e286f231eab410793f3e91c924e6dbd23edee05a.zip |
s390/module: fix building test_modules_helpers.o with clang
Move test_modules_return_* prototypes into a header file in order to
placate -Wmissing-prototypes.
Fixes: 90c5318795ee ("s390/module: test loading modules with a lot of relocations")
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/lib/test_modules.h')
-rw-r--r-- | arch/s390/lib/test_modules.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/lib/test_modules.h b/arch/s390/lib/test_modules.h index 43b5e4b4af3e..6371fcf17684 100644 --- a/arch/s390/lib/test_modules.h +++ b/arch/s390/lib/test_modules.h @@ -47,4 +47,7 @@ __REPEAT_10000_1(f, 8); \ __REPEAT_10000_1(f, 9) +#define DECLARE_RETURN(i) int test_modules_return_ ## i(void) +REPEAT_10000(DECLARE_RETURN); + #endif |