Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752641AbbBRLx1 (ORCPT ); Wed, 18 Feb 2015 06:53:27 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:59005 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751674AbbBRLxZ (ORCPT ); Wed, 18 Feb 2015 06:53:25 -0500 X-IronPort-AV: E=Sophos;i="5.09,512,1418083200"; d="scan'208";a="228088485" Message-ID: <54E47D32.9040208@citrix.com> Date: Wed, 18 Feb 2015 11:53:22 +0000 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 MIME-Version: 1.0 To: Mikko Rapeli , CC: David Vrabel , , , Boris Ostrovsky Subject: Re: [Xen-devel] [PATCH 25/45] gntalloc.h: include stdint.h in userspace References: <1424127948-22484-1-git-send-email-mikko.rapeli@iki.fi> <1424127948-22484-26-git-send-email-mikko.rapeli@iki.fi> In-Reply-To: <1424127948-22484-26-git-send-email-mikko.rapeli@iki.fi> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 33 On 16/02/15 23:05, Mikko Rapeli wrote: > Fixes compilation error: > > xen/gntalloc.h:22:2: error: unknown type name ‘uint16_t’ > > Signed-off-by: Mikko Rapeli > --- > include/uapi/xen/gntalloc.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/include/uapi/xen/gntalloc.h b/include/uapi/xen/gntalloc.h > index 76bd580..184df7e 100644 > --- a/include/uapi/xen/gntalloc.h > +++ b/include/uapi/xen/gntalloc.h > @@ -11,6 +11,12 @@ > #ifndef __LINUX_PUBLIC_GNTALLOC_H__ > #define __LINUX_PUBLIC_GNTALLOC_H__ > > +#ifdef __KERNEL__ > +#include > +#else > +#include > +#endif I think it would be preferrable to #include only and switch to using the __u32 etc. types (as others have suggested). David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/