hush/modutils
Waldemar Brodkorb add927e3d1 modutils: remove special handling of uClibc
Commit 3a45b87ac3 (modutils: support finit_module syscall) introduced
macro finit_module. But it is not defined for uClibc.

The compilation for busybox fails for MIPS with:
With uClibc, we get following build errors:

  modutils/lib.a(modutils.o): In function `bb_init_module':
  modutils.c:(.text.bb_init_module+0x94): undefined reference to `finit_module'
  modutils.c:(.text.bb_init_module+0xa0): undefined reference to `finit_module'

We can just use syscall() without any need for the
uClibc wrappers.

Newer versions of uClibc-ng (>1.0.20) will remove the
module syscall wrappers.

Found via Buildroot autobuilders:
http://autobuild.buildroot.net/results/556/55655daef23788fb3967f801ec8b79e9bed7122b/build-end.log

function                                             old     new   delta
bb_delete_module                                      26      32      +6
bb_init_module                                        90      95      +5
delete_module                                         37       -     -37
init_module                                           53       -     -53
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 2/0 up/down: 11/-90)            Total: -79 bytes

Reported-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-01-10 16:55:51 +01:00
..
Config.src Tweak some config defaults; fix MODPROBE_SMALL ordering in "make config" 2017-01-01 13:01:04 +01:00
Kbuild.src Convert all modutils/* applets to "new style" applet definitions 2016-11-23 07:54:52 +01:00
depmod.c depmod: don't build it if MODPROBE_SMALL=y 2017-01-01 13:13:48 +01:00
depmod_process.sh depmod: fix handling of .gz modules 2009-05-18 13:08:04 +02:00
insmod.c Make INSMOD=y by default 2017-01-01 13:01:04 +01:00
lsmod.c modprobe-small: make applets individually selectable 2017-01-01 13:01:04 +01:00
modinfo.c modinfo: fix "-F firmware", add "intree" field display 2015-10-28 18:07:46 +01:00
modprobe-small.c modutils: remove special handling of uClibc 2017-01-10 16:55:51 +01:00
modprobe.c modprobe-small: make applets individually selectable 2017-01-01 13:01:04 +01:00
modutils-24.c Convert all modutils/* applets to "new style" applet definitions 2016-11-23 07:54:52 +01:00
modutils.c modutils: remove special handling of uClibc 2017-01-10 16:55:51 +01:00
modutils.h modutils: merge module_entry and module_info to common 2015-11-05 18:54:55 +01:00
rmmod.c Make RMMOD=y by default 2017-01-01 13:01:04 +01:00