aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-05-03 19:12:27 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-03 19:12:27 -0700
commita1be8edda4fe1f0a75007f26000a51436800869d (patch)
tree69ecbeda52cfa375431de08e9dcfbcede4ed4883 /include/linux/module.h
parentMerge tag 'trace-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (diff)
parentkallsyms: Use bounded strnchr() when parsing string (diff)
downloadlinux-dev-a1be8edda4fe1f0a75007f26000a51436800869d.tar.xz
linux-dev-a1be8edda4fe1f0a75007f26000a51436800869d.zip
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
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 9ad68561d8c2..21f56393602f 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -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)