From patchwork Wed Oct 31 15:30:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 195963 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 C42672C0081 for ; Thu, 1 Nov 2012 04:44:59 +1100 (EST) Received: from localhost ([::1]:34736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTaIr-0001zS-Ow for incoming@patchwork.ozlabs.org; Wed, 31 Oct 2012 11:34:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTaIN-0001ON-4a for qemu-devel@nongnu.org; Wed, 31 Oct 2012 11:33:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTaII-0005qd-RR for qemu-devel@nongnu.org; Wed, 31 Oct 2012 11:33:30 -0400 Received: from mail-da0-f45.google.com ([209.85.210.45]:43195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTaII-0005YY-LO for qemu-devel@nongnu.org; Wed, 31 Oct 2012 11:33:26 -0400 Received: by mail-da0-f45.google.com with SMTP id n15so666869dad.4 for ; Wed, 31 Oct 2012 08:33:26 -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=BuKPLQbaXeUifbNHm2D0N5SqKCN8bFlDxn9II48bdDE=; b=NrCedExGBpPfUpVPdRxHyFQ4KxI8JPH3GDJvXJKBVssxnXHftZd4TD9voWQ/zzcU8j p/6YrkF2nfWCf8p/945Bkn3ZwpNgrh2O1SzyhYVvRj/sOl8uQYgRuTQJeX1mmWwJh29l f983Im1Z/2GbDeiB3pB3Tb2a/2Ayz9YndGDlSED4PCnXTft9fjwZQLj47nFqwYqfy7iy oml/OVF5Zsq9LSwtnYxUgMICL6/ggapH40lszqlV4kOefI8WOfxMztWbpsF+oSeAQRTi Z9YZ7Hcq2xdlE/PO1bbyWNSXQXRstVFr+9bE/Fy9XT87HFCpz1/tTd4BHwndRp4xxhKJ NPlw== Received: by 10.69.0.10 with SMTP id au10mr114506207pbd.18.1351697606319; Wed, 31 Oct 2012 08:33:26 -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.33.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Oct 2012 08:33:25 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 31 Oct 2012 16:30:53 +0100 Message-Id: <1351697456-16107-37-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.210.45 Cc: aliguori@us.ibm.com, stefanha@redhat.com Subject: [Qemu-devel] [PATCH v2 36/39] raw-posix: rename raw-posix-aio.h, hide unavailable prototypes 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 Signed-off-by: Paolo Bonzini --- block/{raw-posix-aio.h => raw-aio.h} | 10 ++++++---- block/raw-posix.c | 2 +- linux-aio.c | 2 +- 3 file modificati, 8 inserzioni(+), 6 rimozioni(-) rename block/{raw-posix-aio.h => raw-aio.h} (86%) diff --git a/block/raw-posix-aio.h b/block/raw-aio.h similarity index 86% rename from block/raw-posix-aio.h rename to block/raw-aio.h index c714367..b3bb073 100644 --- a/block/raw-posix-aio.h +++ b/block/raw-aio.h @@ -1,5 +1,5 @@ /* - * QEMU Posix block I/O backend AIO support + * Declarations for AIO in the raw protocol * * Copyright IBM, Corp. 2008 * @@ -12,8 +12,8 @@ * Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ -#ifndef QEMU_RAW_POSIX_AIO_H -#define QEMU_RAW_POSIX_AIO_H +#ifndef QEMU_RAW_AIO_H +#define QEMU_RAW_AIO_H /* AIO request types */ #define QEMU_AIO_READ 0x0001 @@ -28,9 +28,11 @@ /* linux-aio.c - Linux native implementation */ +#ifdef CONFIG_LINUX_AIO void *laio_init(void); BlockDriverAIOCB *laio_submit(BlockDriverState *bs, void *aio_ctx, int fd, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type); +#endif -#endif /* QEMU_RAW_POSIX_AIO_H */ +#endif /* QEMU_RAW_AIO_H */ diff --git a/block/raw-posix.c b/block/raw-posix.c index 4d6d5df..f2f0404 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -30,7 +30,7 @@ #include "trace.h" #include "thread-pool.h" #include "iov.h" -#include "block/raw-posix-aio.h" +#include "raw-aio.h" #if defined(__APPLE__) && (__MACH__) #include diff --git a/linux-aio.c b/linux-aio.c index d1afb46..6ca984d 100644 --- a/linux-aio.c +++ b/linux-aio.c @@ -10,7 +10,7 @@ #include "qemu-common.h" #include "qemu-aio.h" #include "qemu-queue.h" -#include "block/raw-posix-aio.h" +#include "block/raw-aio.h" #include "event_notifier.h" #include