diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2003-04-01 04:42:30 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-01 04:42:30 -0800 |
| commit | c17794bb23576b30c6ccc3112ba06ea1cd766b6d (patch) | |
| tree | 6442e1567450a6b2ca14dc97f0ce1e37a50d468d /include/linux | |
| parent | 265300c6b158ec0bb725bbf6401c742576e56059 (diff) | |
[PATCH] Extable list removal
This removes the extable list, and the struct exception_table, in
favour of just iterating through the modules. Now all iteration is
within kernel/module.c, this is a fairly trivial cleanup.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/module.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index a7c673ea41a7..8aef11352270 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -18,7 +18,6 @@ #include <linux/stringify.h> #include <asm/module.h> -#include <asm/uaccess.h> /* For struct exception_table_entry */ /* Not Yet Implemented */ #define MODULE_AUTHOR(name) @@ -51,6 +50,8 @@ extern int init_module(void); extern void cleanup_module(void); /* Archs provide a method of finding the correct exception table. */ +struct exception_table_entry; + const struct exception_table_entry * search_extable(const struct exception_table_entry *first, const struct exception_table_entry *last, @@ -114,15 +115,6 @@ extern const struct gtype##_id __mod_##gtype##_table \ /* Given an address, look for it in the exception tables */ const struct exception_table_entry *search_exception_tables(unsigned long add); -struct exception_table -{ - struct list_head list; - - unsigned int num_entries; - const struct exception_table_entry *entry; -}; - - #ifdef CONFIG_MODULES /* Get/put a kernel symbol (calls must be symmetric) */ @@ -197,8 +189,9 @@ struct module unsigned int num_gpl_syms; const unsigned long *gpl_crcs; - /* Exception tables */ - struct exception_table extable; + /* Exception table */ + unsigned int num_exentries; + const struct exception_table_entry *extable; /* Startup function. */ int (*init)(void); |
