Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ilya Leoshkevich and committed by
Vasily Gorbik
e286f231 72fc4093

+3 -3
-3
arch/s390/lib/test_modules.c
··· 5 5 6 6 #include "test_modules.h" 7 7 8 - #define DECLARE_RETURN(i) int test_modules_return_ ## i(void) 9 - REPEAT_10000(DECLARE_RETURN); 10 - 11 8 /* 12 9 * Test that modules with many relocations are loaded properly. 13 10 */
+3
arch/s390/lib/test_modules.h
··· 47 47 __REPEAT_10000_1(f, 8); \ 48 48 __REPEAT_10000_1(f, 9) 49 49 50 + #define DECLARE_RETURN(i) int test_modules_return_ ## i(void) 51 + REPEAT_10000(DECLARE_RETURN); 52 + 50 53 #endif