diff options
author | Daniel Kurtz | 2014-11-14 23:59:58 -0600 |
---|---|---|
committer | srinivas pulukuru | 2015-01-30 16:04:01 -0600 |
commit | 33f1f8cf3af4ea56ab07d9be74f2056c112983e8 (patch) | |
tree | e2231e61568d55793845567cc6e6cd1be7d7e6a0 | |
parent | 245a2966a4592f2fe33bdc18f168950acd86f351 (diff) | |
download | libdrm-33f1f8cf3af4ea56ab07d9be74f2056c112983e8.tar.gz libdrm-33f1f8cf3af4ea56ab07d9be74f2056c112983e8.tar.xz libdrm-33f1f8cf3af4ea56ab07d9be74f2056c112983e8.zip |
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 <djkurtz@chromium.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
-rw-r--r-- | include/drm/drm.h | 4 | ||||
-rw-r--r-- | xf86drmMode.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h index 568eea03..4b9498f5 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h | |||
@@ -181,7 +181,7 @@ enum drm_map_type { | |||
181 | _DRM_AGP = 3, /**< AGP/GART */ | 181 | _DRM_AGP = 3, /**< AGP/GART */ |
182 | _DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */ | 182 | _DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */ |
183 | _DRM_CONSISTENT = 5, /**< Consistent memory for PCI DMA */ | 183 | _DRM_CONSISTENT = 5, /**< Consistent memory for PCI DMA */ |
184 | _DRM_GEM = 6, /**< GEM object */ | 184 | _DRM_GEM = 6 /**< GEM object */ |
185 | }; | 185 | }; |
186 | 186 | ||
187 | /** | 187 | /** |
@@ -435,7 +435,7 @@ struct drm_draw { | |||
435 | * DRM_IOCTL_UPDATE_DRAW ioctl argument type. | 435 | * DRM_IOCTL_UPDATE_DRAW ioctl argument type. |
436 | */ | 436 | */ |
437 | typedef enum { | 437 | typedef enum { |
438 | DRM_DRAWABLE_CLIPRECTS, | 438 | DRM_DRAWABLE_CLIPRECTS |
439 | } drm_drawable_info_type_t; | 439 | } drm_drawable_info_type_t; |
440 | 440 | ||
441 | struct drm_update_draw { | 441 | struct drm_update_draw { |
diff --git a/xf86drmMode.h b/xf86drmMode.h index f8a817cd..5bc60ee0 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h | |||
@@ -218,11 +218,11 @@ typedef struct _drmModeProperty { | |||
218 | uint32_t flags; | 218 | uint32_t flags; |
219 | char name[DRM_PROP_NAME_LEN]; | 219 | char name[DRM_PROP_NAME_LEN]; |
220 | int count_values; | 220 | int count_values; |
221 | uint64_t *values; // store the blob lengths | 221 | uint64_t *values; /* store the blob lengths */ |
222 | int count_enums; | 222 | int count_enums; |
223 | struct drm_mode_property_enum *enums; | 223 | struct drm_mode_property_enum *enums; |
224 | int count_blobs; | 224 | int count_blobs; |
225 | uint32_t *blob_ids; // store the blob IDs | 225 | uint32_t *blob_ids; /* store the blob IDs */ |
226 | } drmModePropertyRes, *drmModePropertyPtr; | 226 | } drmModePropertyRes, *drmModePropertyPtr; |
227 | 227 | ||
228 | typedef struct _drmModeCrtc { | 228 | typedef struct _drmModeCrtc { |