[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 16/19] blockdev: Give drives internal linkage
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 16/19] blockdev: Give drives internal linkage |
Date: |
Tue, 15 Jun 2010 16:19:38 +0200 |
From: Markus Armbruster <address@hidden>
This is the list of drives defined with drive_init(). Hide it, so it
doesn't get abused.
Signed-off-by: Markus Armbruster <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
blockdev.c | 2 +-
blockdev.h | 2 --
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index f636bc6..b376884 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -15,7 +15,7 @@
#include "qemu-config.h"
#include "sysemu.h"
-struct drivelist drives = QTAILQ_HEAD_INITIALIZER(drives);
+static QTAILQ_HEAD(drivelist, DriveInfo) drives =
QTAILQ_HEAD_INITIALIZER(drives);
QemuOpts *drive_add(const char *file, const char *fmt, ...)
{
diff --git a/blockdev.h b/blockdev.h
index 9e8a7fc..23ea576 100644
--- a/blockdev.h
+++ b/blockdev.h
@@ -36,8 +36,6 @@ typedef struct DriveInfo {
#define MAX_IDE_DEVS 2
#define MAX_SCSI_DEVS 7
-extern QTAILQ_HEAD(drivelist, DriveInfo) drives;
-
extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
extern DriveInfo *drive_get_by_id(const char *id);
extern int drive_get_max_bus(BlockInterfaceType type);
--
1.6.6.1
- [Qemu-devel] [PATCH 11/19] block: Move error actions from DriveInfo to BlockDriverState, (continued)
[Qemu-devel] [PATCH 18/19] block: fix a warning and possible truncation, Kevin Wolf, 2010/06/15
[Qemu-devel] [PATCH 16/19] blockdev: Give drives internal linkage,
Kevin Wolf <=
[Qemu-devel] [PATCH 19/19] xen: Fix build error due to missing include, Kevin Wolf, 2010/06/15
Re: [Qemu-devel] [PULL 00/19] Block patches, Anthony Liguori, 2010/06/15