From patchwork Fri Feb 12 12:13:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 8290441 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 43E40BEEE5 for ; Fri, 12 Feb 2016 12:15:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F5472040F for ; Fri, 12 Feb 2016 12:15:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 38A4320414 for ; Fri, 12 Feb 2016 12:15:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FFC96EA8F; Fri, 12 Feb 2016 04:15:17 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.w1.samsung.com (mailout4.w1.samsung.com [210.118.77.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3B2CB6EA89 for ; Fri, 12 Feb 2016 04:15:14 -0800 (PST) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O2F0056WOPC7900@mailout4.w1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 12 Feb 2016 12:15:12 +0000 (GMT) X-AuditID: cbfec7f4-f79026d00000418a-cb-56bdcccf2bc8 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 08.97.16778.FCCCDB65; Fri, 12 Feb 2016 12:15:11 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O2F00L4POP94J20@eusync1.samsung.com>; Fri, 12 Feb 2016 12:15:11 +0000 (GMT) From: Andrzej Hajda To: Inki Dae Subject: [PATCH 4/4] drm/exynos: use arch independent types in uapi header Date: Fri, 12 Feb 2016 13:13:59 +0100 Message-id: <1455279239-13609-5-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1455279239-13609-1-git-send-email-a.hajda@samsung.com> References: <1455279239-13609-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMLMWRmVeSWpSXmKPExsVy+t/xy7rnz+wNM/gx3dri1rpzrBYbZ6xn tbjy9T2bxZ6r95gsJt2fwGKx4stMdosZ5/cxWaw9cpfdgcNj56y77B73u48zefRtWcXo8XmT XABLFJdNSmpOZllqkb5dAlfG/0e/WAueCVVcvzOJqYFxBn8XIyeHhICJxMcV89khbDGJC/fW s3UxcnEICSxllLi48DQjhNPEJPHsyESwKjYBTYm/m2+ygdgiAsoSq/a1s4MUMQt8YJJ4sGYC I0hCWMBL4mrHK6YuRg4OFgFViednYkDCvALOEqte3IPaJidx8thkVhCbU8BFoqVrDzNIuRBQ zbZPtRMYeRcwMqxiFE0tTS4oTkrPNdQrTswtLs1L10vOz93ECAmqLzsYFx+zOsQowMGoxMNr cGtPmBBrYllxZe4hRgkOZiURXoOmvWFCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeefueh8iJJCe WJKanZpakFoEk2Xi4JRqYAy3D2D1u3NYb6r20tt3WlY6uvZU/JOMmvKfz03bP0frJ2fQxDP1 K5dfDFS2VlC9Fbqs8ONaE4W7hbxfY45Zt/+YIF16/Ptl16IXIfmZx1d8ZUzXZIzdqjxb9YB2 dfKcaAf9xCTWdU4qIbMisjotVCY9csmLd41/Mkk/Wii57kSa1YEbVvMMlFiKMxINtZiLihMB AchLRiYCAAA= Cc: linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz , Jingoo Han , emil.l.velikov@gmail.com, "open list:DRM DRIVERS FOR EXYNOS" , Andrzej Hajda , Marek Szyprowski X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Emil Velikov --- include/uapi/drm/exynos_drm.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/uapi/drm/exynos_drm.h b/include/uapi/drm/exynos_drm.h index 312c67d..d2a5bb1 100644 --- a/include/uapi/drm/exynos_drm.h +++ b/include/uapi/drm/exynos_drm.h @@ -28,8 +28,8 @@ */ struct drm_exynos_gem_create { __u64 size; - unsigned int flags; - unsigned int handle; + __u32 flags; + __u32 handle; }; /** @@ -42,8 +42,8 @@ struct drm_exynos_gem_create { * be set by driver. */ struct drm_exynos_gem_info { - unsigned int handle; - unsigned int flags; + __u32 handle; + __u32 flags; __u64 size; }; @@ -56,8 +56,8 @@ struct drm_exynos_gem_info { * @edid: the edid data pointer from user side. */ struct drm_exynos_vidi_connection { - unsigned int connection; - unsigned int extensions; + __u32 connection; + __u32 extensions; __u64 edid; }; @@ -206,9 +206,9 @@ struct drm_exynos_ipp_prop_list { * @pos: property of image position(src-cropped,dst-scaler). */ struct drm_exynos_ipp_config { - enum drm_exynos_ops_id ops_id; - enum drm_exynos_flip flip; - enum drm_exynos_degree degree; + __u32 ops_id; + __u32 flip; + __u32 degree; __u32 fmt; struct drm_exynos_sz sz; struct drm_exynos_pos pos; @@ -233,7 +233,7 @@ enum drm_exynos_ipp_cmd { */ struct drm_exynos_ipp_property { struct drm_exynos_ipp_config config[EXYNOS_DRM_OPS_MAX]; - enum drm_exynos_ipp_cmd cmd; + __u32 cmd; __u32 ipp_id; __u32 prop_id; __u32 refresh_rate; @@ -255,8 +255,8 @@ enum drm_exynos_ipp_buf_type { * @user_data: user data. */ struct drm_exynos_ipp_queue_buf { - enum drm_exynos_ops_id ops_id; - enum drm_exynos_ipp_buf_type buf_type; + __u32 ops_id; + __u32 buf_type; __u32 prop_id; __u32 buf_id; __u32 handle[EXYNOS_DRM_PLANAR_MAX]; @@ -280,7 +280,7 @@ enum drm_exynos_ipp_ctrl { */ struct drm_exynos_ipp_cmd_ctrl { __u32 prop_id; - enum drm_exynos_ipp_ctrl ctrl; + __u32 ctrl; }; #define DRM_EXYNOS_GEM_CREATE 0x00