← Commit list

c2b18583a

Denys Vlasenko
Denys Vlasenko
2017-02-07
SUCCESS Duration: 193s

Subject

modprobe_small: if only MODPROBE and DEPMOD are selected, no need to test for them

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

modutils/modprobe-small.c+3 -1
@@ -928,7 +928,9 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv)
/* Prevent ugly corner cases with no modules at all */
modinfo = xzalloc(sizeof(modinfo[0]));
- if (is_depmod || is_modprobe) {
+ if ((MOD_APPLET_CNT == 2 && ENABLE_DEPMOD && ENABLE_MODPROBE)
+ || is_depmod || is_modprobe
+ ) {
/* Goto modules directory */
xchdir(CONFIG_DEFAULT_MODULES_DIR);
uname(&uts); /* never fails */