From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753440AbcHVSzs (ORCPT ); Mon, 22 Aug 2016 14:55:48 -0400 Received: from mail.kapsi.fi ([217.30.184.167]:47703 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751802AbcHVSzq (ORCPT ); Mon, 22 Aug 2016 14:55:46 -0400 From: Mikko Rapeli To: linux-kernel@vger.kernel.org Cc: Mikko Rapeli , Boris Ostrovsky , David Vrabel , Juergen Gross , xen-devel@lists.xenproject.org Subject: [PATCH v05 55/72] include/uapi/xen/gntdev.h: include xen/privcmd.h and define grant_ref_t Date: Mon, 22 Aug 2016 20:33:12 +0200 Message-Id: <1471890809-4383-56-git-send-email-mikko.rapeli@iki.fi> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1471890809-4383-1-git-send-email-mikko.rapeli@iki.fi> References: <1471890809-4383-1-git-send-email-mikko.rapeli@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a02:8070:d18f:5c00:bc6b:5a80:6b8d:855c X-SA-Exim-Mail-From: mikko.rapeli@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both are needed to compile wihtout compiler warnings 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 --- 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 d066197..f208706 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 56806bc..7e064d6 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. -- 2.8.1