]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
module: fix noreturn attribute for __module_put_and_exit()
authorJiri Kosina <jikos@kernel.org>
Mon, 11 Apr 2016 19:32:09 +0000 (05:02 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Jul 2016 03:08:00 +0000 (12:38 +0930)
commitbf262dcec6383188a3324192c4a7e405b3b1ad23
treebd10b7eb3ef68c22a05a83253ebf3bc246d46662
parent3fc9d690936fb2e20e180710965ba2cc3a0881f8
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>
include/linux/module.h
kernel/module.c