Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp325680imm; Tue, 14 Aug 2018 20:24:05 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyURyvKvO/ivLaoh8mKrf44xgOuQ3KcjT7HyBptIeiQdiQEbEm/DKlIE+fBNzDcKHYZULxb X-Received: by 2002:a62:c699:: with SMTP id x25-v6mr26472523pfk.16.1534303445456; Tue, 14 Aug 2018 20:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534303445; cv=none; d=google.com; s=arc-20160816; b=VhDvmdX/eK2h+mS92lXdFU4/cPJchA2kyc3wXoBw8mhLgKW0nKRO0Tei83jbBp9eMP RvfPjVscYi2N3YCuPolxl48nT6vko/RIBSM7Bx5GbevNAejH9RiSy7akU/JjEvshTSro RioQe2XY0KX43hxKX+8r3bU/JF55+0tlZxJhqbJDQQL3V2nvxRR6SsNyttcQiBjoqti3 EalAkxG9Ya54IgZYUo2MV9xwNLUFnIULuSmP6+ehlz1yyvLdHpUkZz4UlClYrKT4fN8P xJ7921FEixaUBmACrnjygF+CcvWUIsrUIFPbMZxTWnHY6bF4xpfd+PQE6I7L5eAE/E6F Ptmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=5iMKse9HI/7UQ7guw1JPCeeWwKca9qbMJz/D79Np5iw=; b=fWPp/o4yrDCihZUyUKMWuF8dpiIMIGNJirb0tWLxKFPpr0qICw23wr5vE2U/i8kG5D nhNW8CF76V1poKXNoy292ENthi8JLFbjzcPZB9xORp1zIGYE0cAr9QiZN4oGZ7p7QcLF XRhWUxXwW87H+lNBPVQ95AHN0kngzowYjBLBCA4lohGhZ9BiRYkWb5mwvAhV2oeM9okQ HE8NviGpeaLusbSnZO0Ppj1L3hLCH3WsKxlUzafF+kKnjVSEOdds56XK4KvQbUazreqd dspZpLU1P6aKIpr995sVxe4kNZb+VsLdrqZ3hYgXx5wiM1vzeI0YZf7JtSH6XuSvW1dm 8tdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i18-v6si19603001pgn.433.2018.08.14.20.23.50; Tue, 14 Aug 2018 20:24:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728717AbeHOGNN (ORCPT + 99 others); Wed, 15 Aug 2018 02:13:13 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57134 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728623AbeHOGNN (ORCPT ); Wed, 15 Aug 2018 02:13:13 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8CF6140200CD; Wed, 15 Aug 2018 03:22:58 +0000 (UTC) Received: from [10.72.12.27] (ovpn-12-27.pek2.redhat.com [10.72.12.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 41B992156712; Wed, 15 Aug 2018 03:22:53 +0000 (UTC) Subject: Re: [PATCH 1/1] vhost: change the signature of __vhost_get_user_slow() To: Dongli Zhang , kvm@vger.kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, mst@redhat.com, virtualization@lists.linux-foundation.org References: <1534297600-2577-1-git-send-email-dongli.zhang@oracle.com> From: Jason Wang Message-ID: <12b14053-b3ef-0616-6057-0406e7fd01bf@redhat.com> Date: Wed, 15 Aug 2018 11:22:50 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1534297600-2577-1-git-send-email-dongli.zhang@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 15 Aug 2018 03:22:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 15 Aug 2018 03:22:58 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jasowang@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018年08月15日 09:46, Dongli Zhang wrote: > Remove 'type' from the signature of __vhost_get_user_slow() as it is not > used. > > Signed-off-by: Dongli Zhang > --- > drivers/vhost/vhost.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index ed31145..f78d3bc 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -807,8 +807,7 @@ static int vhost_copy_from_user(struct vhost_virtqueue *vq, void *to, > } > > static void __user *__vhost_get_user_slow(struct vhost_virtqueue *vq, > - void __user *addr, unsigned int size, > - int type) > + void __user *addr, unsigned int size) > { > int ret; > > @@ -846,7 +845,7 @@ static inline void __user *__vhost_get_user(struct vhost_virtqueue *vq, > if (uaddr) > return uaddr; > > - return __vhost_get_user_slow(vq, addr, size, type); > + return __vhost_get_user_slow(vq, addr, size); > } > > #define vhost_put_user(vq, x, ptr) \ Please keep this as is. It will be used by incoming packed virtqueue. Thanks