Skip to content

Commit e046582

Browse files
author
David Herrmann
committed
Revert "kmod-setup: don't print warning on -ENOSYS"
This partially reverts commit 78d298b. The changed coding-style is kept, but the ENOENT->ENOSYS conversion is reverted. kmod was fixed upstream to no longer return ENOSYS. Also see: https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=114ec87c85c35a2bd3682f9f891e494127be6fb5 The kmod fix is marked for backport, so no reason to bump the kmod version we depend on.
1 parent 52a321d commit e046582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/kmod-setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int kmod_setup(void) {
116116
else if (r == KMOD_PROBE_APPLY_BLACKLIST)
117117
log_info("Module '%s' is blacklisted", kmod_module_get_name(mod));
118118
else {
119-
bool print_warning = kmod_table[i].warn_if_unavailable || (r < 0 && r != -ENOSYS);
119+
bool print_warning = kmod_table[i].warn_if_unavailable || (r < 0 && r != -ENOENT);
120120

121121
log_full_errno(print_warning ? LOG_WARNING : LOG_DEBUG, r,
122122
"Failed to insert module '%s': %m", kmod_module_get_name(mod));

0 commit comments

Comments
 (0)