History

drm: Make uapi headers C89 pendantic compliant

This ports the below libdrm commit to the kernel commit 0f4452bb51306024fbf4cbf77d8baab20cefba67 Author: Daniel Kurtz <djkurtz@chromium.org> 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 <djkurtz@chromium.org> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>

Daniel Vetter committed 10 years ago

Commit 00fdf361 parent 4c5b7f31 file · +2 −2Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/drm.h+2−2
@@ -187,7 +187,7 @@ enum drm_map_type { · 186 unmodified lines
187187 _DRM_SHM = 2, /**< shared, cached */
188188 _DRM_AGP = 3, /**< AGP/GART */
189189 _DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */
190− _DRM_CONSISTENT = 5, /**< Consistent memory for PCI DMA */
190+ _DRM_CONSISTENT = 5 /**< Consistent memory for PCI DMA */
191191 };
192192
193193 /**
@@ -441,7 +441,7 @@ struct drm_draw { · 247 unmodified lines
441441 * DRM_IOCTL_UPDATE_DRAW ioctl argument type.
442442 */
443443 typedef enum {
444− DRM_DRAWABLE_CLIPRECTS,
444+ DRM_DRAWABLE_CLIPRECTS
445445 } drm_drawable_info_type_t;
446446
447447 struct drm_update_draw {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t