summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2003-01-05 16:53:06 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-01-05 16:53:06 -0800
commit8e4f2cd334e33240605c353c7fa10e3826a920b3 (patch)
treea8280dac1a38ab7fe5eeb7783cdb5f91d5aa2168 /include/linux/kernel.h
parent18f50759ad60959193f5e06201e0f96cf7d94da2 (diff)
[PATCH] Remove mod_bound macro and unify kernel_text_address().
Various archs (i386, m68k, s390, s390x, m68k, parisc, um, x86_64) implement kernel_text_address. Put this in kernel/extable.c, and the module iteration inside module.c. Other than cleanliness, this finally allows the module list and lock to be static to kernel/module.c (you didn't think I actually cared about those archs did you?) It also drops the module->init_size to zero when it's discarded, so bounds checking is simplified (and the /proc/modules size statistic will be more accurate, too).
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index e6b95f3bb173..7eedbb751856 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -84,6 +84,7 @@ extern unsigned long long memparse(char *ptr, char **retptr);
extern void dev_probe_lock(void);
extern void dev_probe_unlock(void);
+extern int kernel_text_address(unsigned long addr);
extern int session_of_pgrp(int pgrp);
asmlinkage int printk(const char * fmt, ...)