From patchwork Wed May 18 08:19:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 793052 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4I8O3wk004358 for ; Wed, 18 May 2011 08:24:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755549Ab1ERIXA (ORCPT ); Wed, 18 May 2011 04:23:00 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:37524 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755225Ab1ERIW6 (ORCPT ); Wed, 18 May 2011 04:22:58 -0400 Received: by pzk9 with SMTP id 9so601787pzk.19 for ; Wed, 18 May 2011 01:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=4w1iILRUrHebCUFSwOX6uk+IdSTHQN9oIFCvyECnzqo=; b=uX1z6RBMijskdtPwrLXPQ9x3NDUQjkSkqwC31+QY1DJCW3aRpzTPub7+5AkKw9Y6X0 RlRzphmAcFG+icZZnQ+/hKGCtDvYk/4qzd2gwe7APVdObFO0B6z2sYpKU7+DrdlZw3ln tUOWesTnKR7eDaa3/oO60a8IYCjDQdpVOjr9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=PQbDvbZ3paGcmqIf7G3NMUw4lBaSsRuxWicPlzlxEPsh+a5sdJLucP+N98cvH1qq8G 3CeziFP/HZYBk9gAbV4huzRL+cAmv6XDxbqqBWc3+sbLlC+Ywy1SgWbTaeXeqi30zsS9 Mw6aUJBiopL8+IM0U6gy9+UKlM+WIWe5q/pJY= Received: by 10.68.55.5 with SMTP id n5mr2367385pbp.426.1305706978486; Wed, 18 May 2011 01:22:58 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id q10sm912018pbk.39.2011.05.18.01.22.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2011 01:22:57 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org, Asias He Subject: [PATCH 05/14] kvm tools: Remove dead coe disk_image__{read, write}_sector Date: Wed, 18 May 2011 16:19:06 +0800 Message-Id: <1305706755-2816-5-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.5.1 In-Reply-To: <1305706755-2816-1-git-send-email-asias.hejun@gmail.com> References: <1305706755-2816-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 18 May 2011 08:24:06 +0000 (UTC) These code are not used anymore. Let's remove it. Signed-off-by: Asias He --- tools/kvm/include/kvm/disk-image.h | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/tools/kvm/include/kvm/disk-image.h b/tools/kvm/include/kvm/disk-image.h index d43457e..e6d9e8e 100644 --- a/tools/kvm/include/kvm/disk-image.h +++ b/tools/kvm/include/kvm/disk-image.h @@ -44,16 +44,6 @@ struct disk_image *disk_image__new(int fd, u64 size, struct disk_image_operation struct disk_image *disk_image__new_readonly(int fd, u64 size, struct disk_image_operations *ops); void disk_image__close(struct disk_image *disk); -static inline int disk_image__read_sector(struct disk_image *disk, u64 sector, void *dst, u32 dst_len) -{ - return disk->ops->read_sector(disk, sector, dst, dst_len); -} - -static inline int disk_image__write_sector(struct disk_image *disk, u64 sector, void *src, u32 src_len) -{ - return disk->ops->write_sector(disk, sector, src, src_len); -} - ssize_t disk_image__read(struct disk_image *disk, u64 sector, const struct iovec *iov, int iovcount); ssize_t disk_image__write(struct disk_image *disk, u64 sector, const struct iovec *iov, int iovcount);