Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos: use arch independent types in uapi header

User API structs should not use types which size/alignment/padding depends
on architecture. The patch fixes it for all structures except
drm_exynos_g2d_userptr, as g2d related stuff seems to be more complicated
and will be reviewed/adjusted later.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Andrzej Hajda and committed by
Inki Dae
cbf0acef d775acdd

+13 -13
+13 -13
include/uapi/drm/exynos_drm.h
··· 28 28 */ 29 29 struct drm_exynos_gem_create { 30 30 __u64 size; 31 - unsigned int flags; 32 - unsigned int handle; 31 + __u32 flags; 32 + __u32 handle; 33 33 }; 34 34 35 35 /** ··· 42 42 * be set by driver. 43 43 */ 44 44 struct drm_exynos_gem_info { 45 - unsigned int handle; 46 - unsigned int flags; 45 + __u32 handle; 46 + __u32 flags; 47 47 __u64 size; 48 48 }; 49 49 ··· 56 56 * @edid: the edid data pointer from user side. 57 57 */ 58 58 struct drm_exynos_vidi_connection { 59 - unsigned int connection; 60 - unsigned int extensions; 59 + __u32 connection; 60 + __u32 extensions; 61 61 __u64 edid; 62 62 }; 63 63 ··· 206 206 * @pos: property of image position(src-cropped,dst-scaler). 207 207 */ 208 208 struct drm_exynos_ipp_config { 209 - enum drm_exynos_ops_id ops_id; 210 - enum drm_exynos_flip flip; 211 - enum drm_exynos_degree degree; 209 + __u32 ops_id; 210 + __u32 flip; 211 + __u32 degree; 212 212 __u32 fmt; 213 213 struct drm_exynos_sz sz; 214 214 struct drm_exynos_pos pos; ··· 233 233 */ 234 234 struct drm_exynos_ipp_property { 235 235 struct drm_exynos_ipp_config config[EXYNOS_DRM_OPS_MAX]; 236 - enum drm_exynos_ipp_cmd cmd; 236 + __u32 cmd; 237 237 __u32 ipp_id; 238 238 __u32 prop_id; 239 239 __u32 refresh_rate; ··· 255 255 * @user_data: user data. 256 256 */ 257 257 struct drm_exynos_ipp_queue_buf { 258 - enum drm_exynos_ops_id ops_id; 259 - enum drm_exynos_ipp_buf_type buf_type; 258 + __u32 ops_id; 259 + __u32 buf_type; 260 260 __u32 prop_id; 261 261 __u32 buf_id; 262 262 __u32 handle[EXYNOS_DRM_PLANAR_MAX]; ··· 280 280 */ 281 281 struct drm_exynos_ipp_cmd_ctrl { 282 282 __u32 prop_id; 283 - enum drm_exynos_ipp_ctrl ctrl; 283 + __u32 ctrl; 284 284 }; 285 285 286 286 #define DRM_EXYNOS_GEM_CREATE 0x00