Received: from eggs.gnu.org ([2001:4830:134:3::10]:54864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Zvs-0005Mh-Ki for qemu-devel@nongnu.org; Fri, 04 Nov 2016 04:33:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Zvp-00060L-Ar for qemu-devel@nongnu.org; Fri, 04 Nov 2016 04:33:04 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:50438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Zvp-0005zF-16 for qemu-devel@nongnu.org; Fri, 04 Nov 2016 04:33:01 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uA48SwFm124709 for ; Fri, 4 Nov 2016 04:32:59 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 26gexfdmmn-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 04 Nov 2016 04:32:59 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 Nov 2016 08:32:57 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id B520F2190061 for ; Fri, 4 Nov 2016 08:32:10 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uA48WtHw15073730 for ; Fri, 4 Nov 2016 08:32:55 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uA48WtO4027444 for ; Fri, 4 Nov 2016 02:32:55 -0600 Date: Fri, 4 Nov 2016 09:32:53 +0100 From: Cornelia Huck In-Reply-To: <1478163350-17339-3-git-send-email-lprosek@redhat.com> References: <1478163350-17339-1-git-send-email-lprosek@redhat.com> <1478163350-17339-3-git-send-email-lprosek@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20161104093253.660b25c5.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH v2 2/2] virtio: make virtqueue_alloc_element static List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ladi Prosek Cc: qemu-devel@nongnu.org, stefanha@redhat.com, mst@redhat.com On Thu, 3 Nov 2016 09:55:50 +0100 Ladi Prosek wrote: > The function does not fully initialize the returned VirtQueueElement and should > be used only internally from the virtio module. > > Signed-off-by: Ladi Prosek > --- > hw/virtio/virtio.c | 2 +- > include/hw/virtio/virtio.h | 1 - > 2 files changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Cornelia Huck ...although I'm wondering if the callers could not pass in the index value as well? (Still keeping this internal to virtio.c makes sense.)