diff options
author | Jiri Kosina <jikos@kernel.org> | 2016-04-12 05:02:09 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2016-07-27 12:38:00 +0930 |
commit | bf262dcec6383188a3324192c4a7e405b3b1ad23 (patch) | |
tree | bd10b7eb3ef68c22a05a83253ebf3bc246d46662 /kernel | |
parent | 3fc9d690936fb2e20e180710965ba2cc3a0881f8 (diff) | |
download | linux-bf262dcec6383188a3324192c4a7e405b3b1ad23.tar.gz linux-bf262dcec6383188a3324192c4a7e405b3b1ad23.tar.bz2 linux-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 'kernel')
-rw-r--r-- | kernel/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index 5f71aa63ed2a..5e876977844b 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -336,7 +336,7 @@ static inline void add_taint_module(struct module *mod, unsigned flag, * A thread that wants to hold a reference to a module only while it * is running can call this to safely exit. nfsd and lockd use this. */ -void __module_put_and_exit(struct module *mod, long code) +void __noreturn __module_put_and_exit(struct module *mod, long code) { module_put(mod); do_exit(code); |