From patchwork Thu Apr 17 03:54:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 4005561 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0D369BFF02 for ; Thu, 17 Apr 2014 03:55:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5478A2034F for ; Thu, 17 Apr 2014 03:55:17 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 465BA2034E for ; Thu, 17 Apr 2014 03:55:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BBA76EAE7; Wed, 16 Apr 2014 20:55:15 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 358476EAE7 for ; Wed, 16 Apr 2014 20:55:14 -0700 (PDT) Received: by mail-ve0-f174.google.com with SMTP id oz11so11547610veb.19 for ; Wed, 16 Apr 2014 20:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HxCOrxGnFdFAKr76Q2DmQz1DWQhn86+dmiIfC+jxjow=; b=nP+au3owdGa27GCNJF7FPKJvdz2KiOX+d35/Op+B5maRJfDzCVMSaRBiMXsdJP02eM i9dGk63bh1dZJS6S4liA+oHJV3wBJWjOY1v6kRIK/vCKoqnlUn0Zlaj3IsCFwMUqMmVt 3KUtE+NHNZgkEY6OMNTFJB4lJkb2ODP+VehPQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HxCOrxGnFdFAKr76Q2DmQz1DWQhn86+dmiIfC+jxjow=; b=BK/WeAx62A8+Tnt35ia7SNOMXOIW6v4C9EMK7PByzm0JA+iXvGVX4UQLbmHN9vb2AY OgTcpof1Yo6QOlhUI96WUnY8J/wK/B2jrSSBQpRWYI/E8Yt5GEzb0Wv9eu0LbaoLiF9e PoGFysWmuLezdjv8sRBSl6+mTSuXYZmYnFkVCX6usQrCH0wzIJ+MB3I1p60Eb8u9gxZ6 U5gjdZevcr7v3bKp9W3nXN5caFz2rYCMwW+jWC9ZWcIvPTs4hEtw/tLk/ViWLnXW2RHI 4uXZmER8Qyl5W4OE7OLahws/XJG/FOeSrbGt90A+u81mShjlc43xLCmFsv1SoU1PgXjl 90kA== X-Gm-Message-State: ALoCoQlLsOTCChe03K6tWyKCWlqGZC5I2ZhY8kh0KMmQ50xYMcjTyyu/dhJBiM1G+08P6Bk/Te5+ X-Received: by 10.221.26.10 with SMTP id rk10mr6351148vcb.0.1397706913651; Wed, 16 Apr 2014 20:55:13 -0700 (PDT) Received: from djkurtzt530-glaptop.corp.google.com ([203.208.61.193]) by mx.google.com with ESMTPSA id zb18sm21234884vdb.18.2014.04.16.20.55.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Apr 2014 20:55:12 -0700 (PDT) From: Daniel Kurtz To: dri-devel@lists.freedesktop.org, Inki Dae Subject: [PATCH 3/7] exynos_fimg2d: fix cast from pointer to integer of different size Date: Thu, 17 Apr 2014 11:54:37 +0800 Message-Id: <1397706881-19735-5-git-send-email-djkurtz@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a In-Reply-To: <1397706881-19735-1-git-send-email-djkurtz@chromium.org> References: <1397706881-19735-1-git-send-email-djkurtz@chromium.org> Cc: Kyungmin Park X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Fixes two gcc [-Wpointer-to-int-cast] warnings. Signed-off-by: Daniel Kurtz Acked-by: Inki Dae --- exynos/exynos_fimg2d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c index cf712a8..0b14618 100644 --- a/exynos/exynos_fimg2d.c +++ b/exynos/exynos_fimg2d.c @@ -158,8 +158,8 @@ static int g2d_flush(struct g2d_context *ctx) memset(&cmdlist, 0, sizeof(struct drm_exynos_g2d_set_cmdlist)); - cmdlist.cmd = (unsigned int)&ctx->cmd[0]; - cmdlist.cmd_buf = (unsigned int)&ctx->cmd_buf[0]; + cmdlist.cmd = (uint64_t)(uintptr_t)&ctx->cmd[0]; + cmdlist.cmd_buf = (uint64_t)(uintptr_t)&ctx->cmd_buf[0]; cmdlist.cmd_nr = ctx->cmd_nr; cmdlist.cmd_buf_nr = ctx->cmd_buf_nr; cmdlist.event_type = G2D_EVENT_NOT;