summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-09-13 20:28:19 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-13 20:28:19 +0200
commit4791bcccf8ce02c2bf6f9dfbc328a3a46d9e9569 (patch)
tree5224a477d2c8b81acf6798f719cf302de71a9c96 /include
parentFix up MAINTAINERS file sorting (diff)
parentmodule: Remove const attribute from alias for MODULE_DEVICE_TABLE (diff)
downloadlinux-4791bcccf8ce02c2bf6f9dfbc328a3a46d9e9569.tar.xz
linux-4791bcccf8ce02c2bf6f9dfbc328a3a46d9e9569.zip
Merge tag 'modules-for-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
Pull modules updates from Jessica Yu: "Summary of modules changes for the 4.14 merge window: - minor code cleanups and fixes - modpost: avoid building modules that have names that exceed the size of the name field in struct module" * tag 'modules-for-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux: module: Remove const attribute from alias for MODULE_DEVICE_TABLE module: fix ddebug_remove_module() modpost: abort if module name is too long
Diffstat (limited to 'include')
-rw-r--r--include/linux/module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index e7bdd549e527..fe5aa3736707 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -209,7 +209,7 @@ extern void cleanup_module(void);
#ifdef MODULE
/* Creates an alias so file2alias.c can find device table. */
#define MODULE_DEVICE_TABLE(type, name) \
-extern const typeof(name) __mod_##type##__##name##_device_table \
+extern typeof(name) __mod_##type##__##name##_device_table \
__attribute__ ((unused, alias(__stringify(name))))
#else /* !MODULE */
#define MODULE_DEVICE_TABLE(type, name)