From: Daniel Vetter Date: Wed, 30 Mar 2016 14:42:22 +0000 (+0200) Subject: drm: Untangle __KERNEL__ guards X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00c9672606f781f2db7e904127dcbdc2831701ca;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm: Untangle __KERNEL__ guards make headers_install can't handle fancy conditions, so let's simplify things for it a bit. Cc: Emil Velikov Reviewed-by: Emil Velikov Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1459348943-12803-1-git-send-email-daniel.vetter@ffwll.ch --- diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index 85ada499574b..fbc0818bb95b 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi/drm/drm.h @@ -36,7 +36,13 @@ #ifndef _DRM_H_ #define _DRM_H_ -#if defined(__KERNEL__) || defined(__linux__) +#if defined(__KERNEL__) + +#include +#include +typedef unsigned int drm_handle_t; + +#elif defined(__linux__) #include #include