diff options
| author | Felix Blyakher <felixb@sgi.com> | 2009-06-10 18:07:47 -0400 |
|---|---|---|
| committer | Felix Blyakher <felixb@sgi.com> | 2009-06-10 18:07:47 -0400 |
| commit | 4e73e0eb633f8a1b5cbf20e7f42c6dbfec1d1ca7 (patch) | |
| tree | 0cea46e43f0625244c3d06a71d6559e5ec5419ca /include/linux/moduleparam.h | |
| parent | 4156e735d3abde8e9243b5d22f7999dd3fffab2e (diff) | |
| parent | 07a2039b8eb0af4ff464efd3dfd95de5c02648c6 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/moduleparam.h')
| -rw-r--r-- | include/linux/moduleparam.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h index e4af3399ef48..a4f0b931846c 100644 --- a/include/linux/moduleparam.h +++ b/include/linux/moduleparam.h | |||
| @@ -138,6 +138,16 @@ extern int parse_args(const char *name, | |||
| 138 | unsigned num, | 138 | unsigned num, |
| 139 | int (*unknown)(char *param, char *val)); | 139 | int (*unknown)(char *param, char *val)); |
| 140 | 140 | ||
| 141 | /* Called by module remove. */ | ||
| 142 | #ifdef CONFIG_SYSFS | ||
| 143 | extern void destroy_params(const struct kernel_param *params, unsigned num); | ||
| 144 | #else | ||
| 145 | static inline void destroy_params(const struct kernel_param *params, | ||
| 146 | unsigned num) | ||
| 147 | { | ||
| 148 | } | ||
| 149 | #endif /* !CONFIG_SYSFS */ | ||
| 150 | |||
| 141 | /* All the helper functions */ | 151 | /* All the helper functions */ |
| 142 | /* The macros to do compile-time type checking stolen from Jakub | 152 | /* The macros to do compile-time type checking stolen from Jakub |
| 143 | Jelinek, who IIRC came up with this idea for the 2.4 module init code. */ | 153 | Jelinek, who IIRC came up with this idea for the 2.4 module init code. */ |
