Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758800AbcDHS7C (ORCPT ); Fri, 8 Apr 2016 14:59:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60665 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758466AbcDHS7A (ORCPT ); Fri, 8 Apr 2016 14:59:00 -0400 From: Denys Vlasenko To: "Michael S. Tsirkin" Cc: Denys Vlasenko , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] drivers/virtio/virtio_ring.c: Deinline virtqueue_add, save 1016 bytes Date: Fri, 8 Apr 2016 20:58:44 +0200 Message-Id: <1460141926-13069-3-git-send-email-dvlasenk@redhat.com> In-Reply-To: <1460141926-13069-1-git-send-email-dvlasenk@redhat.com> References: <1460141926-13069-1-git-send-email-dvlasenk@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 856 Lines: 28 This function compiles to 839 bytes of machine code. In C, it is ~150 lines long. This function has 3 callsites. Signed-off-by: Denys Vlasenko CC: "Michael S. Tsirkin" CC: virtualization@lists.linux-foundation.org CC: linux-kernel@vger.kernel.org --- drivers/virtio/virtio_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index e12e385..77a4771 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -126,7 +126,7 @@ static struct vring_desc *alloc_indirect(struct virtqueue *_vq, return desc; } -static inline int virtqueue_add(struct virtqueue *_vq, +static int virtqueue_add(struct virtqueue *_vq, struct scatterlist *sgs[], unsigned int total_sg, unsigned int out_sgs, -- 2.1.0