From patchwork Thu Apr 17 03:54:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 4005551 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 50A9D9F2BA for ; Thu, 17 Apr 2014 03:55:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 848DE2034F for ; Thu, 17 Apr 2014 03:55:13 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id AFB0F2034E for ; Thu, 17 Apr 2014 03:55:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 126E86EAE8; Wed, 16 Apr 2014 20:55:12 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by gabe.freedesktop.org (Postfix) with ESMTP id 84A2D6EAE7 for ; Wed, 16 Apr 2014 20:55:10 -0700 (PDT) Received: by mail-vc0-f179.google.com with SMTP id ij19so11542530vcb.24 for ; Wed, 16 Apr 2014 20:55:09 -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=xItbRv0vSxL88b/8vUCBQ9LaAyA2gEZMCoV4EAMHQMc=; b=IAJBmy65w5eELOI56z0r+FdTv3m50OkBOPqdYxJG+0/9inJ6Fe2XNyExatX+SX/eYW BUgGEC4QtA3rjYPsQEN+SEWVP2xyYVW0OKJ4/2FXCyaZT3lQ6uTQxOHvK3KT9fvdGD4A 3p2qRjO91xJp6fuh3jx+EHoT1vVpiq8nmPlqs= 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=xItbRv0vSxL88b/8vUCBQ9LaAyA2gEZMCoV4EAMHQMc=; b=f2EHCWX2HPoe2VCw1Xnhuhy+gYKb9luRkdZYaydV+b4fJSzoCfsa9HzW8iDSWVHT+g nWT4AM8jtOXLwljaPH6Y7QHPUWsEdE+MAHM62jc2F/AyZqv+AunqjJmHJu0a4y7Pgb3x 88H+TZPWE+c1AIs9S4rq7urKK2FvuNhBnczQ5Rxi4Vs5K3gPq2AdiZcpkcT80BgiORM4 oKVQ23TDU+Kxzt4QRdZCy24QvqEKgfhpOjcaFmuJ4BOuFHC20HhaGQGO6c2ff8kpA7w0 Sk8nAGQLc2DT6o59GP2+k5K3VG8JyiHiFxpqhqtiMLJV2gGdI5tAoH6LrJDfpDyThCLn XRqg== X-Gm-Message-State: ALoCoQlGLE7mOa5nZgkNERT7vE4+RSCCAt+HxgW77G2riXJeJ9s+aaZok0IvZV8s7S40FBmOGxrq X-Received: by 10.58.181.170 with SMTP id dx10mr5382544vec.25.1397706908953; Wed, 16 Apr 2014 20:55:08 -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.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Apr 2014 20:55:08 -0700 (PDT) From: Daniel Kurtz To: dri-devel@lists.freedesktop.org, Inki Dae Subject: [PATCH 2/7] exynos: fix two warnings Date: Thu, 17 Apr 2014 11:54:36 +0800 Message-Id: <1397706881-19735-4-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 warning: assignment makes pointer from integer without a cast [enabled by default] warning: initialization makes integer from pointer without a cast [enabled by default] Signed-off-by: Daniel Kurtz Acked-by: Inki Dae --- exynos/exynos_drm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exynos/exynos_drm.c b/exynos/exynos_drm.c index 4db755e..b7acdf5 100644 --- a/exynos/exynos_drm.c +++ b/exynos/exynos_drm.c @@ -294,7 +294,7 @@ void *exynos_bo_map(struct exynos_bo *bo) return NULL; } - bo->vaddr = req.mapped; + bo->vaddr = (void *)(uintptr_t)req.mapped; } return bo->vaddr; @@ -381,7 +381,7 @@ int exynos_vidi_connection(struct exynos_device *dev, uint32_t connect, struct drm_exynos_vidi_connection req = { .connection = connect, .extensions = ext, - .edid = edid, + .edid = (uint64_t)(uintptr_t)edid, }; int ret;