Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp265767imm; Tue, 14 Aug 2018 18:48:25 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw+OitWk2mSx6ThIusu4EW4SMzrHOV1JQwT6cWzDWT4JWebJceJc7NW/XOJdh7fFNxQUBQa X-Received: by 2002:a17:902:8506:: with SMTP id bj6-v6mr22439072plb.210.1534297704965; Tue, 14 Aug 2018 18:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534297704; cv=none; d=google.com; s=arc-20160816; b=yu0O3t9OSnJstJGmG4tbWFLTfEZ1Ez22C3zY4ndA8fgS6n5Ih3p7gNDZ+6Ql0xWIx2 zMZ/SdiiHX6RAG1kEhlj33uSxVwTiScMGy7GzuOGuxAXpvyvL3hLuy42LpfaPi9YvpnP zdwsmMbMCfMyclwrdNgYMm2pKasCL6Yl9Si6D9l0T9S6Z4xR6cFLQvRDBfAYlgofjceL KF17xpkhsKBon4SJ0/vU0IDSyV+ZxZg4o/+WJAWrw67Q4I+QQuCdoLmNtYo0BUBmmb/y g7mi8IQ4AFYyVgvZfFgq8ig4oDtqCJdfjYOkdMw/OQ/ersRBE8MWs+WsT6x7oLPc0gGa Mq+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=BF6ckOX6D3HBEMe9A8vgqkrgM2FO83a6w0mt8vEOZ8g=; b=pV6urMTu5J2CA7g3Yv+5UVVGZ/Qbuln+glXCZ+BOlNf11lOWv6Stpp4aINeXlwKwsq zXKS8RX+NOcAauAdLnmiONC9FQn+SRpDqs8RTbGQAKypdpwbpzYZv2I96u+P1If06zSH C+3d2m3IqDYLUplS72SsfEx0ZsIe/wcl4Pab37aT5J4Zk/2KkVZOyZGWJOjDY96RD4Ve r2ZaxpHgI9mqPFhmddkBSKMcxWM28duSIPW3hm4XN5mzM3Ps16/FGff/y1lotWz5OkVp dmQy4PI5v1wlnMqDjxNs0qNPk1PS8Q11CvZ8PmAVBMLJKOPXu+ZZM0wVC0dTrz1c512Z sD6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=jU27pNKU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11-v6si20553737plb.383.2018.08.14.18.48.10; Tue, 14 Aug 2018 18:48:24 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=jU27pNKU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728505AbeHOEhE (ORCPT + 99 others); Wed, 15 Aug 2018 00:37:04 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:42360 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbeHOEhE (ORCPT ); Wed, 15 Aug 2018 00:37:04 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w7F1i4KC152946; Wed, 15 Aug 2018 01:47:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=BF6ckOX6D3HBEMe9A8vgqkrgM2FO83a6w0mt8vEOZ8g=; b=jU27pNKUc0S/I5G3N8+blbLCp3XEoQuWfeJV3KVIN97k5nLzHfF4Ws2haT/JgUJRRWnX Ly19pki3RsOAQpknhojNA/amizdU6b/xjSFwYjRcEph1bSUzu32Z7hGbsr1rmGF96X2h 6jw1epvH3dtr9oA9E8lihyJeos9JTFpkR7ckEWIYNp6P0TLNtd5uNuMEEeC6j9dbJ7N4 Wwkq5teTp2wqoeDDZRN+R4aogdDqoDvyDRxLpiTX+LzzKXKfQhRAy2gve831+5BcdY+Y 3UVgQD+shjukve0y+X92zEPqglNK60yA2ZWEIBhu0N0G8MRAdJ0wbrhCQJ4zDTbNF269 ag== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2ksnad31ff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Aug 2018 01:47:03 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w7F1l2Rn020873 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Aug 2018 01:47:02 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w7F1l2mg031462; Wed, 15 Aug 2018 01:47:02 GMT Received: from linux.cn.oracle.com (/10.182.69.93) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 14 Aug 2018 18:47:01 -0700 From: Dongli Zhang To: kvm@vger.kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org Subject: [PATCH 1/1] vhost: change the signature of __vhost_get_user_slow() Date: Wed, 15 Aug 2018 09:46:40 +0800 Message-Id: <1534297600-2577-1-git-send-email-dongli.zhang@oracle.com> X-Mailer: git-send-email 2.7.4 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8985 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=947 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808150017 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) \ -- 2.7.4