aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-03-31 15:05:31 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-03-30 22:35:32 -0400
commita6e6abd575fcbe6572ebc7a70ad616406d206fa8 (patch)
tree3909d2be063116936179bb4da85d5cb4aed32ce6 /include/linux/module.h
parente610499e2656e61975affd0af56b26eb73964c84 (diff)
module: remove module_text_address()
Impact: Replace and remove risky (non-EXPORTed) API module_text_address() returns a pointer to the module, which given locking improvements in module.c, is useless except to test for NULL: 1) If the module can't go away, use __module_text_address. 2) Otherwise, just use is_module_text_address(). Cc: linux-mtd@lists.infradead.org Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index fd1241e1416f..69761ce0dbf0 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -362,8 +362,6 @@ static inline int module_is_live(struct module *mod)
362 return mod->state != MODULE_STATE_GOING; 362 return mod->state != MODULE_STATE_GOING;
363} 363}
364 364
365/* Is this address in a module? (second is with no locks, for oops) */
366struct module *module_text_address(unsigned long addr);
367struct module *__module_text_address(unsigned long addr); 365struct module *__module_text_address(unsigned long addr);
368struct module *__module_address(unsigned long addr); 366struct module *__module_address(unsigned long addr);
369bool is_module_address(unsigned long addr); 367bool is_module_address(unsigned long addr);
@@ -496,11 +494,6 @@ search_module_extables(unsigned long addr)
496 return NULL; 494 return NULL;
497} 495}
498 496
499static inline struct module *module_text_address(unsigned long addr)
500{
501 return NULL;
502}
503
504static inline struct module *__module_address(unsigned long addr) 497static inline struct module *__module_address(unsigned long addr)
505{ 498{
506 return NULL; 499 return NULL;