module: return bool from within_module*()
authorPetr Mladek <pmladek@suse.cz>
Sat, 26 Jul 2014 21:55:01 +0000 (07:25 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 27 Jul 2014 11:22:44 +0000 (20:52 +0930)
The within_module*() functions return only true or false. Let's use bool as
the return type.

Note that it should not change kABI because these are inline functions.

Signed-off-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h

index 61d8fb2d08733cb9fc1aabc51a270d1b52127c1f..71f282a4e307288f7e5dd263b477e81efb507edd 100644 (file)
@@ -396,19 +396,21 @@ bool is_module_address(unsigned long addr);
 bool is_module_percpu_address(unsigned long addr);
 bool is_module_text_address(unsigned long addr);
 
-static inline int within_module_core(unsigned long addr, const struct module *mod)
+static inline bool within_module_core(unsigned long addr,
+                                     const struct module *mod)
 {
        return (unsigned long)mod->module_core <= addr &&
               addr < (unsigned long)mod->module_core + mod->core_size;
 }
 
-static inline int within_module_init(unsigned long addr, const struct module *mod)
+static inline bool within_module_init(unsigned long addr,
+                                     const struct module *mod)
 {
        return (unsigned long)mod->module_init <= addr &&
               addr < (unsigned long)mod->module_init + mod->init_size;
 }
 
-static inline int within_module(unsigned long addr, const struct module *mod)
+static inline bool within_module(unsigned long addr, const struct module *mod)
 {
        return within_module_init(addr, mod) || within_module_core(addr, mod);
 }
This page took 0.026639 seconds and 5 git commands to generate.