qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: anthony@codemonkey.ws
Cc: kwolf@redhat.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 14/20] block: Make BlockJobTypes const
Date: Fri, 28 Jun 2013 16:25:03 +0200	[thread overview]
Message-ID: <1372429509-29642-15-git-send-email-kwolf@redhat.com> (raw)
In-Reply-To: <1372429509-29642-1-git-send-email-kwolf@redhat.com>

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 block/commit.c | 2 +-
 block/mirror.c | 2 +-
 block/stream.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/block/commit.c b/block/commit.c
index 553447e..2227fc2 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -173,7 +173,7 @@ static void commit_set_speed(BlockJob *job, int64_t speed, Error **errp)
     ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);
 }
 
-static BlockJobType commit_job_type = {
+static const BlockJobType commit_job_type = {
     .instance_size = sizeof(CommitBlockJob),
     .job_type      = "commit",
     .set_speed     = commit_set_speed,
diff --git a/block/mirror.c b/block/mirror.c
index 1ae724f..bed4a7e 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -524,7 +524,7 @@ static void mirror_complete(BlockJob *job, Error **errp)
     block_job_resume(job);
 }
 
-static BlockJobType mirror_job_type = {
+static const BlockJobType mirror_job_type = {
     .instance_size = sizeof(MirrorBlockJob),
     .job_type      = "mirror",
     .set_speed     = mirror_set_speed,
diff --git a/block/stream.c b/block/stream.c
index d6df06f..7fe9e48 100644
--- a/block/stream.c
+++ b/block/stream.c
@@ -198,7 +198,7 @@ static void stream_set_speed(BlockJob *job, int64_t speed, Error **errp)
     ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);
 }
 
-static BlockJobType stream_job_type = {
+static const BlockJobType stream_job_type = {
     .instance_size = sizeof(StreamBlockJob),
     .job_type      = "stream",
     .set_speed     = stream_set_speed,
-- 
1.8.1.4

  parent reply	other threads:[~2013-06-28 14:25 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28 14:24 [Qemu-devel] [PULL 00/20] Block patches Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 01/20] raw-posix: Fix /dev/cdrom magic on OS X Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 02/20] notify: add NotiferWithReturn so notifier list can abort Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 03/20] block: add bdrv_add_before_write_notifier() Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 04/20] block: add basic backup support to block driver Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 05/20] blockdev: drop redundant proto_drv check Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 06/20] blockdev: use bdrv_getlength() in qmp_drive_mirror() Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 07/20] block: add drive-backup QMP command Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 08/20] blockdev: rename BlkTransactionStates to singular Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 09/20] blockdev: allow BdrvActionOps->commit() to be NULL Kevin Wolf
2013-06-28 14:24 ` [Qemu-devel] [PULL 10/20] blockdev: add DriveBackup transaction Kevin Wolf
2013-06-28 14:25 ` [Qemu-devel] [PULL 11/20] blockdev: add Abort transaction Kevin Wolf
2013-06-28 14:25 ` [Qemu-devel] [PULL 12/20] qemu-iotests: extract wait_until_completed() into iotests.py Kevin Wolf
2013-06-28 14:25 ` [Qemu-devel] [PULL 13/20] qemu-iotests: add 055 drive-backup test case Kevin Wolf
2013-06-28 14:25 ` Kevin Wolf [this message]
2013-06-28 14:25 ` [Qemu-devel] [PULL 15/20] block/ssh: Set bdrv_has_zero_init according to the file type Kevin Wolf
2013-06-28 14:25 ` [Qemu-devel] [PULL 16/20] gluster: Return bdrv_has_zero_init = 0 Kevin Wolf
2013-06-28 14:25 ` [Qemu-devel] [PULL 17/20] vmdk: remove wrong calculation of relative path Kevin Wolf
2013-06-28 14:25 ` [Qemu-devel] [PULL 18/20] vpc: Implement .bdrv_has_zero_init Kevin Wolf
2013-06-28 14:25 ` [Qemu-devel] [PULL 19/20] block: change default of .has_zero_init to 0 Kevin Wolf
2013-06-28 14:25 ` [Qemu-devel] [PULL 20/20] cmd646: fix build when DEBUG_IDE is enabled Kevin Wolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1372429509-29642-15-git-send-email-kwolf@redhat.com \
    --to=kwolf@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).