drm: Untangle __KERNEL__ guards
authorDaniel Vetter <[email protected]>
Wed, 30 Mar 2016 14:42:22 +0000 (16:42 +0200)
committerDaniel Vetter <[email protected]>
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 <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
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>