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:
4c5b7f3
)
drm: Make uapi headers C89 pendantic compliant
author
Daniel Vetter
<
[email protected]
>
Wed, 30 Mar 2016 14:42:23 +0000
(16:42 +0200)
committer
Daniel Vetter
<
[email protected]
>
Thu, 31 Mar 2016 05:57:50 +0000
(07:57 +0200)
This ports the below libdrm commit to the kernel
commit
0f4452bb51306024fbf4cbf77d8baab20cefba67
Author: Daniel Kurtz <
[email protected]
>
Date: Mon Aug 26 23:39:16 2013 +0800
libdrm: Make some drm headers compatible with gcc -std=c89 -pedantic
The following minor changes were needed to these headers:
* Convert // comments to /* */
* No , after final member of enum
With these changes, these header files can be included by a program that
is built with gcc options:
-std=c89 -Werror -pedantic
Signed-off-by: Daniel Kurtz <
[email protected]
>
Signed-off-by: Eric Anholt <
[email protected]
>
Reviewed-by: Eric Anholt <
[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
patch
|
blob
|
history
diff --git
a/include/uapi/drm/drm.h
b/include/uapi/drm/drm.h
index fbc0818bb95be0dd12f126dcc519d6b76380d3e7..368325061ca72e4c1eb2307444d1bb7e1487ed34 100644
(file)
--- a/
include/uapi/drm/drm.h
+++ b/
include/uapi/drm/drm.h
@@
-187,7
+187,7
@@
enum drm_map_type {
_DRM_SHM = 2, /**< shared, cached */
_DRM_AGP = 3, /**< AGP/GART */
_DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */
- _DRM_CONSISTENT = 5
,
/**< Consistent memory for PCI DMA */
+ _DRM_CONSISTENT = 5
/**< Consistent memory for PCI DMA */
};
/**
@@
-441,7
+441,7
@@
struct drm_draw {
* DRM_IOCTL_UPDATE_DRAW ioctl argument type.
*/
typedef enum {
- DRM_DRAWABLE_CLIPRECTS
,
+ DRM_DRAWABLE_CLIPRECTS
} drm_drawable_info_type_t;
struct drm_update_draw {