aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorJiri Kosina <jikos@kernel.org>2016-04-12 05:02:09 +0930
committerRusty Russell <rusty@rustcorp.com.au>2016-07-27 12:38:00 +0930
commitbf262dcec6383188a3324192c4a7e405b3b1ad23 (patch)
treebd10b7eb3ef68c22a05a83253ebf3bc246d46662 /include/linux/module.h
parentMerge branch 'for-4.8/drivers' of git://git.kernel.dk/linux-block (diff)
downloadlinux-dev-bf262dcec6383188a3324192c4a7e405b3b1ad23.tar.xz
linux-dev-bf262dcec6383188a3324192c4a7e405b3b1ad23.zip
module: fix noreturn attribute for __module_put_and_exit()
__module_put_and_exit() is makred noreturn in module.h declaration, but is lacking the attribute in the definition, which makes some tools (such as sparse) unhappy. Amend the definition with the attribute as well (and reformat the declaration so that it uses more common format). Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 3daf2b3a09d2..f777164c238b 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -575,8 +575,8 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
struct module *, unsigned long),
void *data);
-extern void __module_put_and_exit(struct module *mod, long code)
- __attribute__((noreturn));
+extern void __noreturn __module_put_and_exit(struct module *mod,
+ long code);
#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code)
#ifdef CONFIG_MODULE_UNLOAD