From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kapsi.fi ([217.30.184.167]:32878 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752365AbaIAG0a (ORCPT ); Mon, 1 Sep 2014 02:26:30 -0400 From: Mikko Rapeli Subject: [RFC PATCH v2 08/27] nouveau_drm.h: include stdint.h in userspace Date: Mon, 1 Sep 2014 09:25:59 +0300 Message-Id: <1409552778-2537-9-git-send-email-mikko.rapeli@iki.fi> In-Reply-To: <1409552778-2537-1-git-send-email-mikko.rapeli@iki.fi> References: <1408660449-4011-1-git-send-email-mikko.rapeli@iki.fi> <1409552778-2537-1-git-send-email-mikko.rapeli@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org Cc: linux-kbuild@vger.kernel.org, mikko.rapeli@iki.fi Fixes compilation error: drm/nouveau_drm.h:41:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/drm/nouveau_drm.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/drm/nouveau_drm.h b/include/uapi/drm/nouveau_drm.h index 2a5769f..90b9b4a 100644 --- a/include/uapi/drm/nouveau_drm.h +++ b/include/uapi/drm/nouveau_drm.h @@ -25,6 +25,12 @@ #ifndef __NOUVEAU_DRM_H__ #define __NOUVEAU_DRM_H__ +#ifdef __KERNEL__ +#include +#else +#include +#endif + #define NOUVEAU_GEM_DOMAIN_CPU (1 << 0) #define NOUVEAU_GEM_DOMAIN_VRAM (1 << 1) #define NOUVEAU_GEM_DOMAIN_GART (1 << 2) -- 2.1.0