From patchwork Fri Feb 27 18:07:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Vesely X-Patchwork-Id: 5902361 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 46FC39F38E for ; Fri, 27 Feb 2015 18:07:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7486A2021F for ; Fri, 27 Feb 2015 18:07:39 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9CEEC2024D for ; Fri, 27 Feb 2015 18:07:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AD1AD6E934; Fri, 27 Feb 2015 10:07:35 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D4B16E92F for ; Fri, 27 Feb 2015 10:07:33 -0800 (PST) Received: by mail-qa0-f45.google.com with SMTP id j7so13915647qaq.4 for ; Fri, 27 Feb 2015 10:07:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=qSLigbfJy9XszRjS6GFKItL/MzdFOa9xDkp9XiwEilk=; b=mHBvX636FFc0lEC7nVsvv+sprKxDasOmfnxG6pMAlXc3D1AWUSu2rQAn1D3RSLpANF yEiPUZXpcjHyo6x3Rd/4T/TbwQOVdmEbkgDHgGewEgOEv5KA5Hr+zHkstcmEJQO4MvKY 6cgDtmibTLkky+xUmEEVLGdf4u8HrHpCMazBXyxQm9c3PAQeztSf3qbRP5SauLT2v2T3 uiMMPN29ZCd2LNGmKBnL6JWOQ+NPFuvb6hn8wOXs4kT1Kdrj33RVCk0oh++gghb7OE/o MHIwIUa0JQdd8X2Lp1iyeP3GOhYBcVETJ1XK5uhfbjb/je5jYe206IKGOaYheNewvKXZ Gzlg== X-Gm-Message-State: ALoCoQnItw9d60notQ+fQN3tc0D7/0aBs6P0lC5FTkQev3sF7zRGYXb9RMhczMofiCs8B1dlSWYw X-Received: by 10.140.94.87 with SMTP id f81mr29966962qge.38.1425060452691; Fri, 27 Feb 2015 10:07:32 -0800 (PST) Received: from adriatix.rutgers.edu ([198.151.130.147]) by mx.google.com with ESMTPSA id 70sm3062318qhe.29.2015.02.27.10.07.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 10:07:32 -0800 (PST) From: Jan Vesely To: Emil Velikov , dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 5/8] Fix aliasing and switch-enum warnings Date: Fri, 27 Feb 2015 13:07:25 -0500 Message-Id: <1425060448-5315-6-git-send-email-jan.vesely@rutgers.edu> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1425060448-5315-1-git-send-email-jan.vesely@rutgers.edu> References: <1425060448-5315-1-git-send-email-jan.vesely@rutgers.edu> 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 Signed-off-by: Jan Vesely --- tests/exynos/exynos_fimg2d_test.c | 3 +++ tests/modeprint/modeprint.c | 1 + xf86drmMode.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c index dc7c5cb..ba8d12c 100644 --- a/tests/exynos/exynos_fimg2d_test.c +++ b/tests/exynos/exynos_fimg2d_test.c @@ -273,6 +273,7 @@ static int g2d_copy_test(struct exynos_device *dev, struct exynos_bo *src, src_img.user_ptr[0].userptr = userptr; src_img.user_ptr[0].size = size; break; + case G2D_IMGBUF_COLOR: default: type = G2D_IMGBUF_GEM; break; @@ -356,6 +357,7 @@ static int g2d_copy_with_scale_test(struct exynos_device *dev, src_img.user_ptr[0].userptr = userptr; src_img.user_ptr[0].size = size; break; + case G2D_IMGBUF_COLOR: default: type = G2D_IMGBUF_GEM; break; @@ -444,6 +446,7 @@ static int g2d_blend_test(struct exynos_device *dev, src_img.user_ptr[0].userptr = userptr; src_img.user_ptr[0].size = size; break; + case G2D_IMGBUF_COLOR: default: type = G2D_IMGBUF_GEM; break; diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c index de59cbd..508c9f2 100644 --- a/tests/modeprint/modeprint.c +++ b/tests/modeprint/modeprint.c @@ -60,6 +60,7 @@ static const char* getConnectionText(drmModeConnection conn) return "connected"; case DRM_MODE_DISCONNECTED: return "disconnected"; + case DRM_MODE_UNKNOWNCONNECTION: default: return "unknown"; } diff --git a/xf86drmMode.c b/xf86drmMode.c index 61d5e01..acb6c52 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -858,7 +858,7 @@ int drmHandleEvent(int fd, drmEventContextPtr evctx) i = 0; while (i < len) { - e = (struct drm_event *) &buffer[i]; + e = (void *) &buffer[i]; switch (e->type) { case DRM_EVENT_VBLANK: if (evctx->version < 1 ||