From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aH8nl-0004gR-Un for qemu-devel@nongnu.org; Thu, 07 Jan 2016 06:32:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aH8ni-0007Pz-ND for qemu-devel@nongnu.org; Thu, 07 Jan 2016 06:32:21 -0500 Received: from e06smtp09.uk.ibm.com ([195.75.94.105]:46764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aH8ni-0007Pq-Da for qemu-devel@nongnu.org; Thu, 07 Jan 2016 06:32:18 -0500 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 7 Jan 2016 11:32:17 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 496C917D8062 for ; Thu, 7 Jan 2016 11:33:01 +0000 (GMT) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u07BWFmO36438034 for ; Thu, 7 Jan 2016 11:32:15 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u07BWFU5011614 for ; Thu, 7 Jan 2016 04:32:15 -0700 From: Greg Kurz Date: Thu, 07 Jan 2016 12:32:14 +0100 Message-ID: <20160107113214.10897.50820.stgit@bahia.huguette.org> In-Reply-To: <20160107110747.10897.41118.stgit@bahia.huguette.org> References: <20160107110747.10897.41118.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 3/6] virtio: drop the virtio_needs_swap() helper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org It is not used anymore. Signed-off-by: Greg Kurz --- include/hw/virtio/virtio-access.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/hw/virtio/virtio-access.h b/include/hw/virtio/virtio-access.h index 8aec843c8ff3..a01fff2e51d7 100644 --- a/include/hw/virtio/virtio-access.h +++ b/include/hw/virtio/virtio-access.h @@ -143,15 +143,6 @@ static inline uint64_t virtio_ldq_p(VirtIODevice *vdev, const void *ptr) } } -static inline bool virtio_needs_swap(VirtIODevice *vdev) -{ -#ifdef HOST_WORDS_BIGENDIAN - return virtio_access_is_big_endian(vdev) ? false : true; -#else - return virtio_access_is_big_endian(vdev) ? true : false; -#endif -} - static inline uint16_t virtio_tswap16(VirtIODevice *vdev, uint16_t s) { #ifdef HOST_WORDS_BIGENDIAN