[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 08/10] scripts: Allow block module to not define Bloc
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 08/10] scripts: Allow block module to not define BlockDriver |
Date: |
Fri, 7 Oct 2016 15:42:57 +0200 |
From: Fam Zheng <address@hidden>
Signed-off-by: Fam Zheng <address@hidden>
Message-id: address@hidden
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Max Reitz <address@hidden>
---
scripts/modules/module_block.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/scripts/modules/module_block.py b/scripts/modules/module_block.py
index db4fb54..3f73007 100644
--- a/scripts/modules/module_block.py
+++ b/scripts/modules/module_block.py
@@ -37,7 +37,6 @@ def add_module(fheader, library, format_name, protocol_name):
def process_file(fheader, filename):
# This parser assumes the coding style rules are being followed
with open(filename, "r") as cfile:
- found_something = False
found_start = False
library, _ = os.path.splitext(os.path.basename(filename))
for line in cfile:
@@ -51,16 +50,10 @@ def process_file(fheader, filename):
add_module(fheader, library, format_name, protocol_name)
found_start = False
elif line.find("static BlockDriver") != -1:
- found_something = True
found_start = True
format_name = ""
protocol_name = ""
- if not found_something:
- print("No BlockDriver struct found in " + filename + ". \
- Is this really a module?", file=sys.stderr)
- sys.exit(1)
-
def print_top(fheader):
fheader.write('''/* AUTOMATICALLY GENERATED, DO NOT MODIFY */
/*
--
1.8.3.1
- [Qemu-devel] [PULL 00/10] Block layer patches, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 01/10] block: use bdrv_add_before_write_notifier, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 04/10] block: Add bdrv_runtime_opts to query-command-line-options, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 05/10] block: Add node name to BLOCK_IO_ERROR event, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 03/10] block: use aio_bh_schedule_oneshot, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 02/10] async: add aio_bh_schedule_oneshot, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 07/10] block: Add qdev ID to DEVICE_TRAY_MOVED, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 08/10] scripts: Allow block module to not define BlockDriver,
Kevin Wolf <=
- [Qemu-devel] [PULL 06/10] block-backend: Remember if attached device is non-qdev, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 09/10] module: Don't load the same module if requested multiple times, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 10/10] dmg: Move libbz2 code to dmg-bz2.so, Kevin Wolf, 2016/10/07
- Re: [Qemu-devel] [PULL 00/10] Block layer patches, Peter Maydell, 2016/10/10