drm: Untangle __KERNEL__ guards
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Mar 2016 14:42:22 +0000 (16:42 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Mar 2016 19:09:33 +0000 (21:09 +0200)
make headers_install can't handle fancy conditions, so let's simplify
things for it a bit.

Cc: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459348943-12803-1-git-send-email-daniel.vetter@ffwll.ch
include/uapi/drm/drm.h

index 85ada499574b2b0e975155a06dac1e509f197dc7..fbc0818bb95be0dd12f126dcc519d6b76380d3e7 100644 (file)
 #ifndef _DRM_H_
 #define _DRM_H_
 
-#if defined(__KERNEL__) || defined(__linux__)
+#if defined(__KERNEL__)
+
+#include <linux/types.h>
+#include <asm/ioctl.h>
+typedef unsigned int drm_handle_t;
+
+#elif defined(__linux__)
 
 #include <linux/types.h>
 #include <asm/ioctl.h>