projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44debe7
)
drm: Make drm.h uapi header safe for C++
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 30 Mar 2016 15:12:33 +0000
(17:12 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 30 Mar 2016 19:07:45 +0000
(21:07 +0200)
virtual is a protected keyword in C++ and can't be used at all. Ugh.
This aligns the kernel versions of the drm headers with the ones in
libdrm.
v2: Also annote with __user, as request by Emil&Ilia.
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
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/1459350753-18320-1-git-send-email-daniel.vetter@ffwll.ch
include/uapi/drm/drm.h
patch
|
blob
|
history
diff --git
a/include/uapi/drm/drm.h
b/include/uapi/drm/drm.h
index a0ebfe7c9a28c5d57a71a6a857291ee5b41fd5d6..7d42d105f32a1d090b8980f75cd7b1e17c975696 100644
(file)
--- a/
include/uapi/drm/drm.h
+++ b/
include/uapi/drm/drm.h
@@
-373,7
+373,11
@@
struct drm_buf_pub {
*/
struct drm_buf_map {
int count; /**< Length of the buffer list */
+#ifdef __cplusplus
+ void __user *virt;
+#else
void __user *virtual; /**< Mmap'd area in user-virtual */
+#endif
struct drm_buf_pub __user *list; /**< Buffer information */
};