[PATCH] lockdep: add is_module_address()
Add is_module_address() method - to be used by lockdep. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
93e028148f
commit
4d435f9d8f
2 changed files with 29 additions and 0 deletions
|
@ -358,6 +358,7 @@ static inline int module_is_live(struct module *mod)
|
|||
/* Is this address in a module? (second is with no locks, for oops) */
|
||||
struct module *module_text_address(unsigned long addr);
|
||||
struct module *__module_text_address(unsigned long addr);
|
||||
int is_module_address(unsigned long addr);
|
||||
|
||||
/* Returns module and fills in value, defined and namebuf, or NULL if
|
||||
symnum out of range. */
|
||||
|
@ -496,6 +497,11 @@ static inline struct module *__module_text_address(unsigned long addr)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static inline int is_module_address(unsigned long addr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Get/put a kernel symbol (calls should be symmetric) */
|
||||
#define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); })
|
||||
#define symbol_put(x) do { } while(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue