diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-23 07:38:21 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-23 07:53:31 +0100 |
commit | c7294c98c891e56f6507cbbf9441fce17c92e41a (patch) | |
tree | 7cd5dcbe05c788475d54fd47b0cbc091b75103ea | |
parent | 6d4d6e2cfc6b7ea247adca2d3ae137a68c4e5148 (diff) |
remove UCLIBC_LINUX_MODULE_26
The syscall wrappers are not required and other C libraries
do not provide them. Busybox modutils.c must be patched so
that syscall() is used for uClibc-ng.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-rw-r--r-- | extra/Configs/Config.in | 9 | ||||
-rw-r--r-- | extra/Configs/defconfigs/or1k/defconfig | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/Makefile.in | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/delete_module.c | 13 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/init_module.c | 20 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/stubs.c | 8 |
6 files changed, 0 insertions, 53 deletions
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index 64ff513a0..6b0985e38 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -950,15 +950,6 @@ config UCLIBC_GRP_BUFFER_SIZE comment "Support various families of functions" -config UCLIBC_LINUX_MODULE_26 - bool "Linux kernel module functions (2.6)" - default y - help - delete_module, init_module - are used in linux for loadable kernel modules. - - Say N if you do not use kernel modules. - config UCLIBC_LINUX_SPECIFIC bool "Linux specific functions" default y diff --git a/extra/Configs/defconfigs/or1k/defconfig b/extra/Configs/defconfigs/or1k/defconfig index d97651533..a4197470c 100644 --- a/extra/Configs/defconfigs/or1k/defconfig +++ b/extra/Configs/defconfigs/or1k/defconfig @@ -114,8 +114,6 @@ UCLIBC_GRP_BUFFER_SIZE=256 # # Support various families of functions # -UCLIBC_LINUX_MODULE_26=y -UCLIBC_LINUX_MODULE_24=y UCLIBC_LINUX_SPECIFIC=y UCLIBC_HAS_GNU_ERROR=y UCLIBC_BSD_SPECIFIC=y diff --git a/libc/sysdeps/linux/common/Makefile.in b/libc/sysdeps/linux/common/Makefile.in index 257ed7222..595074cd9 100644 --- a/libc/sysdeps/linux/common/Makefile.in +++ b/libc/sysdeps/linux/common/Makefile.in @@ -15,7 +15,6 @@ CSRC_LFS := $(notdir $(wildcard $(COMMON_DIR)/*64.c)) CSRC-y := $(filter-out llseek.c $(CSRC_LFS),$(CSRC-y)) CSRC-y += llseek.c $(CSRC_LFS) CSRC-$(findstring y,$(UCLIBC_HAS_SSP)$(UCLIBC_HAS_FORTIFY)) += ssp.c -CSRC-$(UCLIBC_LINUX_MODULE_26) += delete_module.c init_module.c # we need these internally: fstatfs.c statfs.c CSRC-$(UCLIBC_LINUX_SPECIFIC) += \ bdflush.c \ diff --git a/libc/sysdeps/linux/common/delete_module.c b/libc/sysdeps/linux/common/delete_module.c deleted file mode 100644 index 05841d413..000000000 --- a/libc/sysdeps/linux/common/delete_module.c +++ /dev/null @@ -1,13 +0,0 @@ -/* vi: set sw=4 ts=4: */ -/* - * delete_module() for uClibc - * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> - * - * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - */ - -#include <sys/syscall.h> -#ifdef __NR_delete_module -int delete_module(const char *name, unsigned int flags); -_syscall2(int, delete_module, const char *, name, unsigned int, flags) -#endif diff --git a/libc/sysdeps/linux/common/init_module.c b/libc/sysdeps/linux/common/init_module.c deleted file mode 100644 index a2a3e02f5..000000000 --- a/libc/sysdeps/linux/common/init_module.c +++ /dev/null @@ -1,20 +0,0 @@ -/* vi: set sw=4 ts=4: */ -/* - * init_module() for uClibc - * - * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> - * - * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - */ - -#include <sys/syscall.h> - -#ifdef __NR_init_module -int init_module(void *first, void *second, void *third, void *fourth, void *fifth); -/* This may have 5 arguments (for old 2.0 kernels) or 2 arguments - * (for 2.2 and 2.4 kernels). Use the greatest common denominator, - * and let the kernel cope with whatever it gets. It's good at that. */ -_syscall5(int, init_module, void *, first, void *, second, void *, third, - void *, fourth, void *, fifth) -#endif - diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c index e7e81daaf..c17e509b9 100644 --- a/libc/sysdeps/linux/common/stubs.c +++ b/libc/sysdeps/linux/common/stubs.c @@ -86,10 +86,6 @@ make_stub(capset) make_stub(connect) #endif -#if !defined __NR_delete_module && defined __UCLIBC_LINUX_MODULE_26__ -make_stub(delete_module) -#endif - #if !defined __NR_epoll_create && defined __UCLIBC_HAS_EPOLL__ \ && !defined __NR_epoll_create1 make_stub(epoll_create) @@ -169,10 +165,6 @@ make_stub(getsockopt) make_stub(getxattr) #endif -#if !defined __NR_init_module && defined __UCLIBC_LINUX_MODULE_26__ -make_stub(init_module) -#endif - #if !defined __NR_inotify_add_watch && defined __UCLIBC_LINUX_SPECIFIC__ make_stub(inotify_add_watch) #endif |