Merge tag 'modules-for-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
Pull modules updates from Jessica Yu: - Minor code cleanups - Fix section alignment for .init_array * tag 'modules-for-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux: kallsyms: Use bounded strnchr() when parsing string module: Unify the return value type of try_module_get module: set .init_array alignment to 8
This commit is contained in:
@@ -583,7 +583,7 @@ extern bool try_module_get(struct module *module);
|
||||
extern void module_put(struct module *module);
|
||||
|
||||
#else /*!CONFIG_MODULE_UNLOAD*/
|
||||
static inline int try_module_get(struct module *module)
|
||||
static inline bool try_module_get(struct module *module)
|
||||
{
|
||||
return !module || module_is_live(module);
|
||||
}
|
||||
@@ -680,9 +680,9 @@ static inline void __module_get(struct module *module)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int try_module_get(struct module *module)
|
||||
static inline bool try_module_get(struct module *module)
|
||||
{
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline void module_put(struct module *module)
|
||||
|
Reference in New Issue
Block a user