summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-10-09 00:00:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-10-09 00:00:47 +0000
commitd6434e1042f3b0a6dfe1b1f615af369486f9b1fa (patch)
treee2be02f33984c48ec019c654051d27964e42c441 /kernel/module.c
parent609d1e803baf519487233b765eb487f9ec227a18 (diff)
Merge with 2.3.19.
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/kernel/module.c b/kernel/module.c
index c5591db7f..6f4ad977d 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -57,7 +57,7 @@ static void free_module(struct module *, int tag_freed);
* Called at boot time
*/
-__initfunc(void init_modules(void))
+void __init init_modules(void)
{
kernel_module.nsyms = __stop___ksymtab - __start___ksymtab;
@@ -76,10 +76,6 @@ get_mod_name(const char *user_name, char **buf)
unsigned long page;
long retval;
- if ((unsigned long)user_name >= TASK_SIZE
- && !segment_eq(get_fs (), KERNEL_DS))
- return -EFAULT;
-
page = __get_free_page(GFP_KERNEL);
if (!page)
return -ENOMEM;
@@ -161,7 +157,7 @@ err0:
* Initialize a module.
*/
-asmlinkage int
+asmlinkage long
sys_init_module(const char *name_user, struct module *mod_user)
{
struct module mod_tmp, *mod;
@@ -353,7 +349,7 @@ err0:
return error;
}
-asmlinkage int
+asmlinkage long
sys_delete_module(const char *name_user)
{
struct module *mod, *next;
@@ -628,7 +624,7 @@ qm_info(struct module *mod, char *buf, size_t bufsize, size_t *ret)
return error;
}
-asmlinkage int
+asmlinkage long
sys_query_module(const char *name_user, int which, char *buf, size_t bufsize,
size_t *ret)
{
@@ -693,7 +689,7 @@ out:
* which does not arbitrarily limit the length of symbols.
*/
-asmlinkage int
+asmlinkage long
sys_get_kernel_syms(struct kernel_sym *table)
{
struct module *mod;
@@ -981,19 +977,19 @@ sys_create_module(const char *name_user, size_t size)
return -ENOSYS;
}
-asmlinkage int
+asmlinkage long
sys_init_module(const char *name_user, struct module *mod_user)
{
return -ENOSYS;
}
-asmlinkage int
+asmlinkage long
sys_delete_module(const char *name_user)
{
return -ENOSYS;
}
-asmlinkage int
+asmlinkage long
sys_query_module(const char *name_user, int which, char *buf, size_t bufsize,
size_t *ret)
{
@@ -1005,7 +1001,7 @@ sys_query_module(const char *name_user, int which, char *buf, size_t bufsize,
return -ENOSYS;
}
-asmlinkage int
+asmlinkage long
sys_get_kernel_syms(struct kernel_sym *table)
{
return -ENOSYS;