Skip to content

Commit e286f23

Browse files
iii-iVasily Gorbik
authored andcommitted
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: 90c5318 ("s390/module: test loading modules with a lot of relocations") Reported-by: kernel test robot <[email protected]> Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Ilya Leoshkevich <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 72fc409 commit e286f23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/s390/lib/test_modules.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
#include "test_modules.h"
77

8-
#define DECLARE_RETURN(i) int test_modules_return_ ## i(void)
9-
REPEAT_10000(DECLARE_RETURN);
10-
118
/*
129
* Test that modules with many relocations are loaded properly.
1310
*/

arch/s390/lib/test_modules.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@
4747
__REPEAT_10000_1(f, 8); \
4848
__REPEAT_10000_1(f, 9)
4949

50+
#define DECLARE_RETURN(i) int test_modules_return_ ## i(void)
51+
REPEAT_10000(DECLARE_RETURN);
52+
5053
#endif

0 commit comments

Comments
 (0)