]> git.baikalelectronics.ru Git - 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)
commit56f74effbfab3ddc342370d99132d49386b92d86
treebd10b7eb3ef68c22a05a83253ebf3bc246d46662
parent2b606bc4ee77cfd27959b598f47be67cfb321e43
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