diff options
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 0dfb794c52d3..2c599175c583 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
| @@ -156,6 +156,11 @@ extern struct module __this_module; | |||
| 156 | */ | 156 | */ |
| 157 | #define MODULE_VERSION(_version) MODULE_INFO(version, _version) | 157 | #define MODULE_VERSION(_version) MODULE_INFO(version, _version) |
| 158 | 158 | ||
| 159 | /* Optional firmware file (or files) needed by the module | ||
| 160 | * format is simply firmware file name. Multiple firmware | ||
| 161 | * files require multiple MODULE_FIRMWARE() specifiers */ | ||
| 162 | #define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware) | ||
| 163 | |||
| 159 | /* Given an address, look for it in the exception tables */ | 164 | /* Given an address, look for it in the exception tables */ |
| 160 | const struct exception_table_entry *search_exception_tables(unsigned long add); | 165 | const struct exception_table_entry *search_exception_tables(unsigned long add); |
| 161 | 166 | ||
| @@ -227,17 +232,17 @@ enum module_state | |||
| 227 | }; | 232 | }; |
| 228 | 233 | ||
| 229 | /* Similar stuff for section attributes. */ | 234 | /* Similar stuff for section attributes. */ |
| 230 | #define MODULE_SECT_NAME_LEN 32 | ||
| 231 | struct module_sect_attr | 235 | struct module_sect_attr |
| 232 | { | 236 | { |
| 233 | struct module_attribute mattr; | 237 | struct module_attribute mattr; |
| 234 | char name[MODULE_SECT_NAME_LEN]; | 238 | char *name; |
| 235 | unsigned long address; | 239 | unsigned long address; |
| 236 | }; | 240 | }; |
| 237 | 241 | ||
| 238 | struct module_sect_attrs | 242 | struct module_sect_attrs |
| 239 | { | 243 | { |
| 240 | struct attribute_group grp; | 244 | struct attribute_group grp; |
| 245 | int nsections; | ||
| 241 | struct module_sect_attr attrs[0]; | 246 | struct module_sect_attr attrs[0]; |
| 242 | }; | 247 | }; |
| 243 | 248 | ||
