From patchwork Wed Mar 5 05:01:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 3770551 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 350EDBF13A for ; Wed, 5 Mar 2014 05:02:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AC0D20221 for ; Wed, 5 Mar 2014 05:02:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 89D0B20218 for ; Wed, 5 Mar 2014 05:02:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 13C0AFA2DD; Tue, 4 Mar 2014 21:02:05 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by gabe.freedesktop.org (Postfix) with ESMTP id 7FDDFFA2D6 for ; Tue, 4 Mar 2014 21:02:02 -0800 (PST) Received: by mail-pd0-f171.google.com with SMTP id r10so546798pdi.30 for ; Tue, 04 Mar 2014 21:02:02 -0800 (PST) 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=D2MVtFT2a/lXBjx/YQqYaWJNKvqgwMxXv15aN+AxI58=; b=Zn7cvjJclPo9POunN7R0/AhHnG7KhGQvUUCDC/pip/hmbw/t1GUyosvEc8MerD/gcJ Z+eRohYY+gRJhRPlEI23+TxDJX23JUZRUU4dcYEhH2hbvlcuFv82IFsyRc0NH4pyiD/0 kT7w3SjC2mWtkEbQQbitlRwUpZY4Il84JC/ug= 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=D2MVtFT2a/lXBjx/YQqYaWJNKvqgwMxXv15aN+AxI58=; b=MAcMXbRVQ+hbep9W/yA9e/+3SpJaoeU57GginwuM0qd8HBHcV6eyothLFheQmvq2BG eqpY/xOZ6FAOTkRZOOlex6KCf4EJ+AZuva1phlFuplgD7AXIDwV4+Syx8Ww2JFCqQEKE LyWcugYGRAm9AhAIHcDZBuvcXQw+6RNlkQv8gtCcgz+Nq2yWybMX+0li9Ke1iATii6gE sKrOlldE1pQ59jJWLlgzZbFNJjKMfUlBVA9Z1yzFF3tjGAt91iAPjxtWTaq1N9uI+CaM AC01JKY+ezruivw6zRkVVQRBt00wHd7X5YHPd3uXvvMffdKM0TQRTOV+cG9lAcGCWlQ0 wWoA== X-Gm-Message-State: ALoCoQn9MxepvlLlKAnRgkfxXZyJXE9l+DCQdop6O4dgoU4WFrwaB9IBV19NwupbG20UKCycXpPO X-Received: by 10.66.145.199 with SMTP id sw7mr4076303pab.143.1393995722206; Tue, 04 Mar 2014 21:02:02 -0800 (PST) Received: from djkurtzt530-glaptop.corp.google.com ([216.239.55.197]) by mx.google.com with ESMTPSA id ac5sm3266130pbc.37.2014.03.04.21.02.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 21:02:01 -0800 (PST) From: Daniel Kurtz To: dri-devel@lists.freedesktop.org, Inki Dae Subject: [PATCH 3/8] exynos_fimg2d: fix cast from pointer to integer of different size Date: Tue, 4 Mar 2014 21:01:39 -0800 Message-Id: <1393995704-29184-4-git-send-email-djkurtz@chromium.org> X-Mailer: git-send-email 1.9.0.rc1.175.g0b1dcb5 In-Reply-To: <1393995704-29184-1-git-send-email-djkurtz@chromium.org> References: <1393995704-29184-1-git-send-email-djkurtz@chromium.org> Cc: Kyungmin Park X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 --- 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;