From patchwork Mon Aug 19 01:23:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 268062 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 9AD032C01D6 for ; Mon, 19 Aug 2013 11:23:40 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752821Ab3HSBXh (ORCPT ); Sun, 18 Aug 2013 21:23:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38663 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752759Ab3HSBXg (ORCPT ); Sun, 18 Aug 2013 21:23:36 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r7J1NYvu015106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 18 Aug 2013 21:23:34 -0400 Received: from hj.localdomain.com ([10.66.4.234]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r7J1NU7X014008; Sun, 18 Aug 2013 21:23:31 -0400 From: Asias He To: netdev@vger.kernel.org Cc: David Miller , "Michael S. Tsirkin" , Jason Wang , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, Asias He Subject: [PATCH v2] vhost: Include linux/uio.h instead of linux/socket.h Date: Mon, 19 Aug 2013 09:23:19 +0800 Message-Id: <1376875399-21945-1-git-send-email-asias@redhat.com> In-Reply-To: <20130816.222946.421410239742571372.davem@davemloft.net> References: <20130816.222946.421410239742571372.davem@davemloft.net> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org memcpy_fromiovec is moved from net/core/iovec.c to lib/iovec.c. linux/uio.h provides the declaration for memcpy_fromiovec. Include linux/uio.h instead of inux/socket.h for it. Signed-off-by: Asias He Acked-by: Michael S. Tsirkin --- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index e58cf00..448efe0 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -13,7 +13,7 @@ #include #include -#include /* memcpy_fromiovec */ +#include #include #include #include