Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752533Ab3GXHSK (ORCPT ); Wed, 24 Jul 2013 03:18:10 -0400 Received: from ringil.hengli.com.au ([178.18.16.133]:33169 "EHLO fornost.hengli.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751828Ab3GXHSI (ORCPT ); Wed, 24 Jul 2013 03:18:08 -0400 Date: Wed, 24 Jul 2013 17:17:57 +1000 From: Herbert Xu To: Andreas Robinson , Rusty Russell Cc: Linux Kernel Mailing List , Zhao Hongjiang , davem@davemloft.net, tim.c.chen@linux.intel.com, Andrew Morton , "gregkh@linuxfoundation.org" , linux-crypto@vger.kernel.org Subject: [PATCH] modules: add support for soft module dependencies Message-ID: <20130724071757.GA30970@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2078 Lines: 65 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --0OAP2g/MAC+5xKAE Content-Type: message/rfc822 Content-Disposition: inline From: Andreas Robinson Date: Thu, 5 Nov 2009 14:01:44 +0100 Subject: [PATCH 1/2] modules: add support for soft module dependencies Additional and optional dependencies not found while building the kernel and modules, can now be declared explicitly. Signed-off-by: Andreas Robinson --- 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 --0OAP2g/MAC+5xKAE-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/