]> git.baikalelectronics.ru Git - kernel.git/commit
module: Unify the return value type of try_module_get
authorGao Feng <fgao@ikuai8.com>
Wed, 19 Apr 2017 01:47:22 +0000 (09:47 +0800)
committerJessica Yu <jeyu@redhat.com>
Mon, 24 Apr 2017 04:13:01 +0000 (21:13 -0700)
commitf84ee54bb079040dbecffe16c1b09b4fd2b7d81c
treeae8fbc64db5f265f29b672b1b78f2a3036426b7e
parentd9314031cd6fcbf9d76a321cd51c824241c7cbe6
module: Unify the return value type of try_module_get

The prototypes of try_module_get are different with different macro.
When enable module and module unload, it returns bool, but others not.
Make the return type for try_module_get consistent across all module
config options.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
[jeyu: slightly amended changelog to make it clearer]
Signed-off-by: Jessica Yu <jeyu@redhat.com>
include/linux/module.h