Commit 345fb3a2 authored by Richard Henderson's avatar Richard Henderson

[MODULES] Fix compiler warning wrt try_module_get when

modules are disabled.
parent f53cbaab
...@@ -268,8 +268,14 @@ const char *module_address_lookup(unsigned long addr, ...@@ -268,8 +268,14 @@ const char *module_address_lookup(unsigned long addr,
#define symbol_put(x) do { } while(0) #define symbol_put(x) do { } while(0)
#define symbol_put_addr(x) do { } while(0) #define symbol_put_addr(x) do { } while(0)
#define try_module_get(module) 1 static inline int try_module_get(struct module *module)
#define module_put(module) do { } while(0) {
return 1;
}
static inline void module_put(struct module *module)
{
}
#define module_name(mod) "kernel" #define module_name(mod) "kernel"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment