diff options
| author | Andreas Robinson <andr345@gmail.com> | 2013-08-20 02:03:19 -0400 |
|---|---|---|
| committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-08-20 02:07:41 -0400 |
| commit | 7cb14ba75d57910cc4b62115dd5db7bd83c93684 (patch) | |
| tree | 95ea4743800e25e85fdc305cb4f0115db4495c59 | |
| parent | 4d10c223baab8be8f717df3625cfece5be26dead (diff) | |
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 <andr345@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
| -rw-r--r-- | 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 46f1ea01e6f6..504035f3ece1 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
| @@ -97,6 +97,11 @@ extern const struct gtype##_id __mod_##gtype##_table \ | |||
| 97 | /* For userspace: you can also call me... */ | 97 | /* For userspace: you can also call me... */ |
| 98 | #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias) | 98 | #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias) |
| 99 | 99 | ||
| 100 | /* Soft module dependencies. See man modprobe.d for details. | ||
| 101 | * Example: MODULE_SOFTDEP("pre: module-foo module-bar post: module-baz") | ||
| 102 | */ | ||
| 103 | #define MODULE_SOFTDEP(_softdep) MODULE_INFO(softdep, _softdep) | ||
| 104 | |||
| 100 | /* | 105 | /* |
| 101 | * The following license idents are currently accepted as indicating free | 106 | * The following license idents are currently accepted as indicating free |
| 102 | * software modules | 107 | * software modules |
