From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHGf6-0003US-Dp for qemu-devel@nongnu.org; Thu, 07 Jan 2016 14:55:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHGf3-0005eu-85 for qemu-devel@nongnu.org; Thu, 07 Jan 2016 14:55:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHGf3-0005ek-2T for qemu-devel@nongnu.org; Thu, 07 Jan 2016 14:55:53 -0500 References: <20160107110747.10897.41118.stgit@bahia.huguette.org> <20160107113214.10897.50820.stgit@bahia.huguette.org> From: Laurent Vivier Message-ID: <568EC2C6.2020604@redhat.com> Date: Thu, 7 Jan 2016 20:55:50 +0100 MIME-Version: 1.0 In-Reply-To: <20160107113214.10897.50820.stgit@bahia.huguette.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [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: Greg Kurz , "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org On 07/01/2016 12:32, Greg Kurz wrote: > 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 > -} > - I think you can move this to PATCH 1/6 too. > static inline uint16_t virtio_tswap16(VirtIODevice *vdev, uint16_t s) > { > #ifdef HOST_WORDS_BIGENDIAN > >