From: He Dan Date: Fri, 28 Mar 2025 15:06:13 +0000 (+0800) Subject: Remove the softdep modinfo in the modules mod-softdep-a and mod-softdep-b X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fb3d0fd68f7cc24e5ddfc208b46dd6c381a2ce7;p=thirdparty%2Fkmod.git Remove the softdep modinfo in the modules mod-softdep-a and mod-softdep-b Since the soft dependencies are defined in modprobe config, we do not have to add those info in the modinfo section of the modules. Co-developed-by: Dan He Signed-off-by: Dan He Co-developed-by: Gongjun Song Signed-off-by: Gongjun Song Signed-off-by: Yuchi Chen Signed-off-by: Wenjie Wang Signed-off-by: Qingqing Li Signed-off-by: He Dan Link: https://github.com/kmod-project/kmod/pull/311 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/module-playground/mod-softdep-a.c b/testsuite/module-playground/mod-softdep-a.c index 90cb90a0..05abd887 100644 --- a/testsuite/module-playground/mod-softdep-a.c +++ b/testsuite/module-playground/mod-softdep-a.c @@ -7,10 +7,6 @@ #include #include -#ifndef MODULE_SOFTDEP -#define MODULE_SOFTDEP(_softdep) MODULE_INFO(softdep, _softdep) -#endif - static int __init softdep_init(void) { return 0; @@ -18,5 +14,4 @@ static int __init softdep_init(void) module_init(softdep_init); MODULE_AUTHOR("Dan He "); -MODULE_LICENSE("LGPL"); -MODULE_SOFTDEP("pre: mod-foo-a mod-foo-b post: mod-foo-c"); +MODULE_LICENSE("LGPL"); \ No newline at end of file diff --git a/testsuite/module-playground/mod-softdep-b.c b/testsuite/module-playground/mod-softdep-b.c index b9fb74df..7527b68e 100644 --- a/testsuite/module-playground/mod-softdep-b.c +++ b/testsuite/module-playground/mod-softdep-b.c @@ -7,10 +7,6 @@ #include #include -#ifndef MODULE_SOFTDEP -#define MODULE_SOFTDEP(_softdep) MODULE_INFO(softdep, _softdep) -#endif - static int __init softdep_init(void) { return 0; @@ -19,4 +15,3 @@ module_init(softdep_init); MODULE_AUTHOR("Dan He "); MODULE_LICENSE("LGPL"); -MODULE_SOFTDEP("pre: mod-foo-a post: mod-foo-b mod-foo-c");