linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] modules: add support for soft module dependencies
@ 2013-07-24  7:17 Herbert Xu
       [not found] ` <87siz38q2t.fsf@rustcorp.com.au>
  0 siblings, 1 reply; 10+ messages in thread
From: Herbert Xu @ 2013-07-24  7:17 UTC (permalink / raw)
  To: Andreas Robinson, Rusty Russell
  Cc: Linux Kernel Mailing List, Zhao Hongjiang, davem, tim.c.chen,
	Andrew Morton, gregkh@linuxfoundation.org, linux-crypto

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

Hi Rusty:

I don't know why this patch never went into the kernel, even
though the corresponding features have been added to modprobe
in most if not all distros.

This is required for dependencies on crypto modules such as
crc32c where the dependency is only visible at run-time, which
means that depmod fails to list the necessary dependencies
causing modules to go missing in the initrd.

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[-- Attachment #2: Type: message/rfc822, Size: 1034 bytes --]

From: Andreas Robinson <andr345@gmail.com>
Subject: [PATCH 1/2] modules: add support for soft module dependencies
Date: Thu, 5 Nov 2009 14:01:44 +0100

Additional and optional dependencies not found while building the kernel and
modules, can now be declared explicitly.

Signed-off-by: Andreas Robinson <andr345@gmail.com>
---
 include/linux/module.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/module.h b/include/linux/module.h
index 482efc8..0a97fe2 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -98,6 +98,11 @@ extern struct module __this_module;
 /* For userspace: you can also call me... */
 #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias)
 
+/* Soft module dependencies. See man modprobe.d for details.
+ * Example: MODULE_SOFTDEP("pre: module-foo post: module-bar")
+ */
+#define MODULE_SOFTDEP(_softdep) MODULE_INFO(softdep, _softdep)
+
 /*
  * The following license idents are currently accepted as indicating free
  * software modules
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-09-18  7:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-24  7:17 [PATCH] modules: add support for soft module dependencies Herbert Xu
     [not found] ` <87siz38q2t.fsf@rustcorp.com.au>
2013-07-25  2:03   ` Herbert Xu
2013-09-10 14:01     ` Lucas De Marchi
2013-09-10 14:18       ` Tom Gundersen
2013-09-11  4:40       ` Herbert Xu
2013-09-13  0:07       ` Rusty Russell
2013-09-17 22:27         ` Lucas De Marchi
2013-09-18  2:10           ` Rusty Russell
2013-09-18  5:32             ` Lucas De Marchi
2013-09-18  7:17               ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).