udhcpd: code shrink - do not fetch requested IP twice
[oweals/busybox.git] / modutils / lsmod.c
index ee85fb0fb0a7ce24de149869152d21e05eb1e4bf..39dc8e6b713ec0c8bd6dd5f79c0cc12c59d303a6 100644 (file)
@@ -8,32 +8,32 @@
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 //config:config LSMOD
-//config:      bool "lsmod"
-//config:      default n
-//config:      depends on !MODPROBE_SMALL
+//config:      bool "lsmod (1.9 kb)"
+//config:      default y
 //config:      select PLATFORM_LINUX
 //config:      help
-//config:        lsmod is used to display a list of loaded modules.
+//config:      lsmod is used to display a list of loaded modules.
 //config:
 //config:config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
 //config:      bool "Pretty output"
-//config:      default n
-//config:      depends on LSMOD
-//config:      select PLATFORM_LINUX
+//config:      default y
+//config:      depends on LSMOD && !MODPROBE_SMALL
 //config:      help
-//config:        This option makes output format of lsmod adjusted to
-//config:        the format of module-init-tools for Linux kernel 2.6.
-//config:        Increases size somewhat.
+//config:      This option makes output format of lsmod adjusted to
+//config:      the format of module-init-tools for Linux kernel 2.6.
+//config:      Increases size somewhat.
 
-//applet:IF_LSMOD(APPLET(lsmod, BB_DIR_SBIN, BB_SUID_DROP))
+//applet:IF_LSMOD(IF_NOT_MODPROBE_SMALL(APPLET_NOEXEC(lsmod, lsmod, BB_DIR_SBIN, BB_SUID_DROP, lsmod)))
 
+//kbuild:ifneq ($(CONFIG_MODPROBE_SMALL),y)
 //kbuild:lib-$(CONFIG_LSMOD) += lsmod.o modutils.o
+//kbuild:endif
 
 //usage:#if !ENABLE_MODPROBE_SMALL
 //usage:#define lsmod_trivial_usage
 //usage:       ""
 //usage:#define lsmod_full_usage "\n\n"
-//usage:       "List the currently loaded kernel modules"
+//usage:       "List loaded kernel modules"
 //usage:#endif
 
 #include "libbb.h"
@@ -66,7 +66,10 @@ static void check_tainted(void)
        }
 }
 #else
-static void check_tainted(void) { putchar('\n'); }
+static ALWAYS_INLINE void check_tainted(void)
+{
+       putchar('\n');
+}
 #endif
 
 int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;