summaryrefslogtreecommitdiff
path: root/include/linux/moduleloader.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-05-12 09:10:05 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-05-12 09:10:05 -0700
commitb7df5197b4b05adfa66563a5908d29ef74c0fc64 (patch)
tree8084246585c916b9cbd9b005324b45ab63890c63 /include/linux/moduleloader.h
parentf2248e8df63696954a4984fa5fa4d64a135f6de9 (diff)
[PATCH] implement module_arch_cleanup() in all architectures
From: Rusty Russell <rusty@rustcorp.com.au>, David Mosberger The patch below updates the other platforms with module_arch_cleanup(). Also, I added more debug output to kernel/module.c since I found it useful to be able to see the final section layout.
Diffstat (limited to 'include/linux/moduleloader.h')
-rw-r--r--include/linux/moduleloader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/moduleloader.h b/include/linux/moduleloader.h
index 0c9e9a69f8ba..eb1033957486 100644
--- a/include/linux/moduleloader.h
+++ b/include/linux/moduleloader.h
@@ -41,4 +41,7 @@ int module_finalize(const Elf_Ehdr *hdr,
const Elf_Shdr *sechdrs,
struct module *mod);
+/* Any cleanup needed when module leaves. */
+void module_arch_cleanup(struct module *mod);
+
#endif