[LTP] [PATCH COMMITTED] syscalls/delete_module: drop static declaration

Jan Stancek jstancek@redhat.com
Thu Aug 18 09:39:33 CEST 2022


Recent builds with upstream kernel catch static/non-static mismatch
and fail to build:
  CC [M]  /root/ltp/testcases/kernel/syscalls/delete_module/dummy_del_mod.o
  /root/ltp/testcases/kernel/syscalls/delete_module/dummy_del_mod.o: error: local symbol 'dummy_func_test' was exported
  make[1]: *** [scripts/Makefile.build:249: /root/ltp/testcases/kernel/syscalls/delete_module/dummy_del_mod.o] Error 1

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/syscalls/delete_module/dummy_del_mod.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/testcases/kernel/syscalls/delete_module/dummy_del_mod.c b/testcases/kernel/syscalls/delete_module/dummy_del_mod.c
index 04a0b321bee9..0ca7bea37e3b 100644
--- a/testcases/kernel/syscalls/delete_module/dummy_del_mod.c
+++ b/testcases/kernel/syscalls/delete_module/dummy_del_mod.c
@@ -14,8 +14,6 @@
 #include <linux/proc_fs.h>
 #include <linux/kernel.h>
 
-static int dummy_func_test(void);
-
 /* Dummy function called by dependent module */
 int dummy_func_test(void)
 {
-- 
2.27.0



More information about the ltp mailing list