提交 e286f231 编写于 作者: I Ilya Leoshkevich 提交者: Vasily Gorbik

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: 90c53187 ("s390/module: test loading modules with a lot of relocations")
Reported-by: Nkernel test robot <lkp@intel.com>
Reviewed-by: NHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: NIlya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: NVasily Gorbik <gor@linux.ibm.com>
上级 72fc4093
...@@ -5,9 +5,6 @@ ...@@ -5,9 +5,6 @@
#include "test_modules.h" #include "test_modules.h"
#define DECLARE_RETURN(i) int test_modules_return_ ## i(void)
REPEAT_10000(DECLARE_RETURN);
/* /*
* Test that modules with many relocations are loaded properly. * Test that modules with many relocations are loaded properly.
*/ */
......
...@@ -47,4 +47,7 @@ ...@@ -47,4 +47,7 @@
__REPEAT_10000_1(f, 8); \ __REPEAT_10000_1(f, 8); \
__REPEAT_10000_1(f, 9) __REPEAT_10000_1(f, 9)
#define DECLARE_RETURN(i) int test_modules_return_ ## i(void)
REPEAT_10000(DECLARE_RETURN);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册