aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 5de42043dff0..4cfebc211695 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -174,10 +174,7 @@ extern struct module __this_module;
174#define MODULE_VERSION(_version) \ 174#define MODULE_VERSION(_version) \
175 extern ssize_t __modver_version_show(struct module_attribute *, \ 175 extern ssize_t __modver_version_show(struct module_attribute *, \
176 struct module *, char *); \ 176 struct module *, char *); \
177 static struct module_version_attribute __modver_version_attr \ 177 static struct module_version_attribute ___modver_attr = { \
178 __used \
179 __attribute__ ((__section__ ("__modver"),aligned(sizeof(void *)))) \
180 = { \
181 .mattr = { \ 178 .mattr = { \
182 .attr = { \ 179 .attr = { \
183 .name = "version", \ 180 .name = "version", \
@@ -187,7 +184,10 @@ extern struct module __this_module;
187 }, \ 184 }, \
188 .module_name = KBUILD_MODNAME, \ 185 .module_name = KBUILD_MODNAME, \
189 .version = _version, \ 186 .version = _version, \
190 } 187 }; \
188 static const struct module_version_attribute \
189 __used __attribute__ ((__section__ ("__modver"))) \
190 * __moduleparam_const __modver_attr = &___modver_attr
191#endif 191#endif
192 192
193/* Optional firmware file (or files) needed by the module 193/* Optional firmware file (or files) needed by the module