mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-11-19 16:28:10 +03:00
cfg: forbid includes of headers in network and storage drivers again
Loadable drivers must never depend on each other. Over time some usage mistakenly crept in for the storage and network drivers, but now this is eliminated the syntax-check rules can enforce this separation once more. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
2
cfg.mk
2
cfg.mk
@@ -769,7 +769,7 @@ sc_prohibit_gettext_markup:
|
||||
# lower-level code must not include higher-level headers.
|
||||
cross_dirs=$(patsubst $(srcdir)/src/%.,%,$(wildcard $(srcdir)/src/*/.))
|
||||
cross_dirs_re=($(subst / ,/|,$(cross_dirs)))
|
||||
mid_dirs=access|admin|conf|cpu|locking|logging|network|node_device|rpc|security|storage
|
||||
mid_dirs=access|admin|conf|cpu|locking|logging|rpc|security
|
||||
sc_prohibit_cross_inclusion:
|
||||
@for dir in $(cross_dirs); do \
|
||||
case $$dir in \
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
#include "snapshot_conf.h"
|
||||
#include "storage_conf.h"
|
||||
#include "secret_conf.h"
|
||||
#include "network/bridge_driver.h"
|
||||
#include "virnetdevtap.h"
|
||||
#include "virnetdevopenvswitch.h"
|
||||
#include "device_conf.h"
|
||||
|
||||
@@ -55,8 +55,6 @@
|
||||
#include "logging/log_manager.h"
|
||||
#include "locking/domain_lock.h"
|
||||
|
||||
#include "storage/storage_driver.h"
|
||||
|
||||
#ifdef MAJOR_IN_MKDEV
|
||||
# include <sys/mkdev.h>
|
||||
#elif MAJOR_IN_SYSMACROS
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
#include "virtypedparam.h"
|
||||
#include "virprocess.h"
|
||||
#include "nwfilter_conf.h"
|
||||
#include "storage/storage_driver.h"
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_QEMU
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
#include "virhostcpu.h"
|
||||
#include "virsocketaddr.h"
|
||||
|
||||
#include "storage/storage_driver.h"
|
||||
#include "vz_sdk.h"
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_PARALLELS
|
||||
|
||||
Reference in New Issue
Block a user