From patchwork Wed Oct 31 15:30:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 195942 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D1DF42C00B5 for ; Thu, 1 Nov 2012 04:10:50 +1100 (EST) Received: from localhost ([::1]:51470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTboW-000491-EF for incoming@patchwork.ozlabs.org; Wed, 31 Oct 2012 13:10:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTaHA-0008Je-TJ for qemu-devel@nongnu.org; Wed, 31 Oct 2012 11:32:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTaH5-0005I7-NK for qemu-devel@nongnu.org; Wed, 31 Oct 2012 11:32:16 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:41123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTaH5-0004ui-Ho for qemu-devel@nongnu.org; Wed, 31 Oct 2012 11:32:11 -0400 Received: by mail-pb0-f45.google.com with SMTP id rp2so1021969pbb.4 for ; Wed, 31 Oct 2012 08:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=dJxisIvnlGCW5zmsJ+B8pjFocK98FDF/U5D8OJRokgI=; b=YPp1QLUl4YRlm4zu9D5Fz6SAGdgV0H74a+pk3tyKxJpdK8Ef2XWb4/TRjyWHlnWdqd jNatX72zIIqTdhiW7JKdEf0DqVDiEOSj4gkoCk7/Ez+AvoULvO2XW0zfTJPcDUT5geJM r6LEuwIAxR+oltYwHvk7musxa4QYXBW7lJ5oQyxxGZl54AVXyBAmmROfA89KR5U1ddpQ p8lAQ125ekD54N30I9Tuh7aKSiU9eEP7K31Pt4S8gUbwEVR4SFUVhXAT43GX23F54XaO txUkDy9U2knPhJ7iqbimDJQD1okSDbfu9I6Su8CSWT+UsMYFbRr+czTBn7Jae6aKgvdS tutQ== Received: by 10.68.197.71 with SMTP id is7mr113440435pbc.79.1351697531155; Wed, 31 Oct 2012 08:32:11 -0700 (PDT) Received: from yakj.usersys.redhat.com (93-34-169-1.ip50.fastwebnet.it. [93.34.169.1]) by mx.google.com with ESMTPS id sz6sm2445230pbc.52.2012.10.31.08.32.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Oct 2012 08:32:10 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 31 Oct 2012 16:30:33 +0100 Message-Id: <1351697456-16107-17-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1351697456-16107-1-git-send-email-pbonzini@redhat.com> References: <1351697456-16107-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.45 Cc: aliguori@us.ibm.com, stefanha@redhat.com Subject: [Qemu-devel] [PATCH v2 16/39] aio: change qemu_aio_set_fd_handler to return void X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Reviewed-by: Anthony Liguori Signed-off-by: Paolo Bonzini --- aio.c | 12 +++++------- qemu-aio.h | 10 +++++----- 2 file modificati, 10 inserzioni(+), 12 rimozioni(-) diff --git a/aio.c b/aio.c index c738a4e..e062aab 100644 --- a/aio.c +++ b/aio.c @@ -53,11 +53,11 @@ static AioHandler *find_aio_handler(int fd) return NULL; } -int qemu_aio_set_fd_handler(int fd, - IOHandler *io_read, - IOHandler *io_write, - AioFlushHandler *io_flush, - void *opaque) +void qemu_aio_set_fd_handler(int fd, + IOHandler *io_read, + IOHandler *io_write, + AioFlushHandler *io_flush, + void *opaque) { AioHandler *node; @@ -93,8 +93,6 @@ int qemu_aio_set_fd_handler(int fd, } qemu_set_fd_handler2(fd, NULL, io_read, io_write, opaque); - - return 0; } void qemu_aio_flush(void) diff --git a/qemu-aio.h b/qemu-aio.h index bfdd35f..27a7e21 100644 --- a/qemu-aio.h +++ b/qemu-aio.h @@ -60,10 +60,10 @@ bool qemu_aio_wait(void); * Code that invokes AIO completion functions should rely on this function * instead of qemu_set_fd_handler[2]. */ -int qemu_aio_set_fd_handler(int fd, - IOHandler *io_read, - IOHandler *io_write, - AioFlushHandler *io_flush, - void *opaque); +void qemu_aio_set_fd_handler(int fd, + IOHandler *io_read, + IOHandler *io_write, + AioFlushHandler *io_flush, + void *opaque); #endif