|
@@ -312,9 +312,6 @@ struct module
|
|
/* Arch-specific module values */
|
|
/* Arch-specific module values */
|
|
struct mod_arch_specific arch;
|
|
struct mod_arch_specific arch;
|
|
|
|
|
|
- /* Am I unsafe to unload? */
|
|
|
|
- int unsafe;
|
|
|
|
-
|
|
|
|
unsigned int taints; /* same bits as kernel:tainted */
|
|
unsigned int taints; /* same bits as kernel:tainted */
|
|
|
|
|
|
#ifdef CONFIG_GENERIC_BUG
|
|
#ifdef CONFIG_GENERIC_BUG
|
|
@@ -441,16 +438,6 @@ static inline void __module_get(struct module *module)
|
|
__mod ? __mod->name : "kernel"; \
|
|
__mod ? __mod->name : "kernel"; \
|
|
})
|
|
})
|
|
|
|
|
|
-#define __unsafe(mod) \
|
|
|
|
-do { \
|
|
|
|
- if (mod && !(mod)->unsafe) { \
|
|
|
|
- printk(KERN_WARNING \
|
|
|
|
- "Module %s cannot be unloaded due to unsafe usage in" \
|
|
|
|
- " %s:%u\n", (mod)->name, __FILE__, __LINE__); \
|
|
|
|
- (mod)->unsafe = 1; \
|
|
|
|
- } \
|
|
|
|
-} while(0)
|
|
|
|
-
|
|
|
|
/* For kallsyms to ask for address resolution. NULL means not found. */
|
|
/* For kallsyms to ask for address resolution. NULL means not found. */
|
|
const char *module_address_lookup(unsigned long addr,
|
|
const char *module_address_lookup(unsigned long addr,
|
|
unsigned long *symbolsize,
|
|
unsigned long *symbolsize,
|
|
@@ -518,8 +505,6 @@ static inline void module_put(struct module *module)
|
|
|
|
|
|
#define module_name(mod) "kernel"
|
|
#define module_name(mod) "kernel"
|
|
|
|
|
|
-#define __unsafe(mod)
|
|
|
|
-
|
|
|
|
/* For kallsyms to ask for address resolution. NULL means not found. */
|
|
/* For kallsyms to ask for address resolution. NULL means not found. */
|
|
static inline const char *module_address_lookup(unsigned long addr,
|
|
static inline const char *module_address_lookup(unsigned long addr,
|
|
unsigned long *symbolsize,
|
|
unsigned long *symbolsize,
|