]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit8ba4fcdf0f4068407e98cd9cc0f230c2dd8d56de
treeae8fbc64db5f265f29b672b1b78f2a3036426b7e
parent5bd933fe4481688d595ae1dd0440006c8675a1a8
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