From patchwork Sun Aug 6 16:44:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 9883877 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7C3D0602B6 for ; Sun, 6 Aug 2017 16:50:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E39E2853F for ; Sun, 6 Aug 2017 16:50:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6336D28540; Sun, 6 Aug 2017 16:50:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3DE61285C4 for ; Sun, 6 Aug 2017 16:50:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deOij-0000lE-DA; Sun, 06 Aug 2017 16:48:05 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deOii-0000kw-CA for xen-devel@lists.xenproject.org; Sun, 06 Aug 2017 16:48:04 +0000 Received: from [85.158.143.35] by server-6.bemta-6.messagelabs.com id 15/FC-03937-34847895; Sun, 06 Aug 2017 16:48:03 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRWlGSWpSXmKPExsUS/WKWpK6TR3u kwa9OG4vvWyYzOTB6HP5whSWAMYo1My8pvyKBNePWubNsBcv5Ko4deM3WwDiFp4uRi0NIYAeT xKYZL9m7GDk52AQ0JJ7MOQRkc3CICNhIzH2rClLDLPCNUWLunqdgNcICURKH501kBbFZBFQl9 refYQaxeQUsJDYtWsMCYksIyEtM7J3GCGJzAsUfH1gK1iskYC6xY9kqFoh6QYmTM5+wgOxiFl CXWD9PCCTMDNTavHU2M8QYK4kzP88wgZRIAJ127Zo5RNhT4vCWpWwTGAVmIRk0C2HQLCSDFjA yr2LUKE4tKkst0jUy0ksqykzPKMlNzMzRNTQw08tNLS5OTE/NSUwq1kvOz93ECAxMBiDYwbhm fuAhRkkOJiVR3vgVbZFCfEn5KZUZicUZ8UWlOanFhxhlODiUJHjl3NsjhQSLUtNTK9Iyc4AxA pOW4OBREuG97QaU5i0uSMwtzkyHSJ1iNObYsHr9FyaOVxP+f2MSYsnLz0uVEue9B1IqAFKaUZ oHNwgWu5cYZaWEeRmBThPiKUgtys0sQZV/xSjOwagkzMsGMoUnM68Ebt8roFOYgE55k9gKckp JIkJKqoGxV0OTwfOBc0qfuaXEbeel9/xOXHdIfZ5rJmvRNyPijP693TPOp2kdN7LR3Ok/92v+ 49/ME7Q+LTSrzbJlu1fIwdWeduv0P8FzQsuasv0fyn+8K8dhGhGcfmDTv6VBv/ov356y1ef54 9vdtZv4yr6vexQ8t3rZkXdnnwjt5J9i4Ggl/qZ+yZyjSizFGYmGWsxFxYkAspyZDdgCAAA= X-Env-Sender: mikko.rapeli@iki.fi X-Msg-Ref: server-12.tower-21.messagelabs.com!1502038082!76661239!1 X-Originating-IP: [91.232.154.25] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 8196 invoked from network); 6 Aug 2017 16:48:02 -0000 Received: from mail.kapsi.fi (HELO mail.kapsi.fi) (91.232.154.25) by server-12.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 6 Aug 2017 16:48:02 -0000 Received: from p2003006ccd28d4000219d2fffe03c7a9.dip0.t-ipconnect.de ([2003:6c:cd28:d400:219:d2ff:fe03:c7a9] helo=totoro.fritz.box) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1deOia-0003Hi-F3; Sun, 06 Aug 2017 19:47:56 +0300 From: Mikko Rapeli To: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Date: Sun, 6 Aug 2017 18:44:18 +0200 Message-Id: <20170806164428.2273-28-mikko.rapeli@iki.fi> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170806164428.2273-1-mikko.rapeli@iki.fi> References: <20170806164428.2273-1-mikko.rapeli@iki.fi> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2003:6c:cd28:d400:219:d2ff:fe03:c7a9 X-SA-Exim-Mail-From: mikko.rapeli@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Cc: Juergen Gross , Mikko Rapeli , Masahiro Yamada , xen-devel@lists.xenproject.org, Boris Ostrovsky , Andrew Morton Subject: [Xen-devel] [PATCH v06 27/36] uapi xen/gntdev.h: include xen/privcmd.h and define grant_ref_t X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Both are needed to compile in userspace. Fixes these userspace compile errors: xen/gntdev.h:151:4: error: unknown type name ‘grant_ref_t’ grant_ref_t ref; ^ xen/gntdev.h:153:4: error: unknown type name ‘domid_t’ domid_t domid; ^ Signed-off-by: Mikko Rapeli Cc: Boris Ostrovsky Cc: Juergen Gross Cc: xen-devel@lists.xenproject.org --- include/uapi/xen/gntdev.h | 6 ++++++ include/xen/interface/grant_table.h | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/uapi/xen/gntdev.h b/include/uapi/xen/gntdev.h index d0661977667e..f208706b07c9 100644 --- a/include/uapi/xen/gntdev.h +++ b/include/uapi/xen/gntdev.h @@ -34,6 +34,12 @@ #define __LINUX_PUBLIC_GNTDEV_H__ #include +#include + +/* + * Reference to a grant entry in a specified domain's grant table. + */ +typedef __u32 grant_ref_t; struct ioctl_gntdev_grant_ref { /* The domain ID of the grant to be mapped. */ diff --git a/include/xen/interface/grant_table.h b/include/xen/interface/grant_table.h index 7fb7112d667c..29b3724aec2c 100644 --- a/include/xen/interface/grant_table.h +++ b/include/xen/interface/grant_table.h @@ -29,6 +29,7 @@ #define __XEN_PUBLIC_GRANT_TABLE_H__ #include +#include /* for grant_ref_t */ /*********************************** * GRANT TABLE REPRESENTATION @@ -85,11 +86,6 @@ */ /* - * Reference to a grant entry in a specified domain's grant table. - */ -typedef uint32_t grant_ref_t; - -/* * A grant table comprises a packed array of grant entries in one or more * page frames shared between Xen and a guest. * [XEN]: This field is written by Xen and read by the sharing guest.