diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-03-30 10:42:22 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-03-30 15:09:33 -0400 |
commit | 00c9672606f781f2db7e904127dcbdc2831701ca (patch) | |
tree | a4d52e6f59025479f8780199d5ac0d77c06116b5 | |
parent | 8812f3814120873ac625d0085e64e4b83ff5aff3 (diff) |
drm: Untangle __KERNEL__ guards
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
-rw-r--r-- | include/uapi/drm/drm.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 @@ | |||
36 | #ifndef _DRM_H_ | 36 | #ifndef _DRM_H_ |
37 | #define _DRM_H_ | 37 | #define _DRM_H_ |
38 | 38 | ||
39 | #if defined(__KERNEL__) || defined(__linux__) | 39 | #if defined(__KERNEL__) |
40 | |||
41 | #include <linux/types.h> | ||
42 | #include <asm/ioctl.h> | ||
43 | typedef unsigned int drm_handle_t; | ||
44 | |||
45 | #elif defined(__linux__) | ||
40 | 46 | ||
41 | #include <linux/types.h> | 47 | #include <linux/types.h> |
42 | #include <asm/ioctl.h> | 48 | #include <asm/ioctl.h> |