module: Don't complain when a module is absent
commitbb2eb1892d36e5c9fa1695924434313e3acbb1c0
authorAndreas Färber <afaerber@suse.de>
Tue, 15 Jul 2014 14:04:26 +0000 (15 16:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Jul 2014 12:57:35 +0000 (18 14:57 +0200)
treefb1e6b9c1ec9f37fa1c99d5caf4a6723845cadaa
parentf9e13f8fd87710063f9fa0feaf7de0348b32612a
module: Don't complain when a module is absent

The current implementation depends on a configure-time generated list of
block modules. When any of them is absent, module_load() emits a warning.

This is suboptimal because extracting code to modules was mainly done to
allow separate packaging of modules with intrusive dependencies. Absence
of optional packages then leads to absence of modules and an error
message, which users may recognize as new and report as error.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/module.c