From patchwork Wed Mar 5 05:01:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 3770571 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 96E1CBF13A for ; Wed, 5 Mar 2014 05:02:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB11A20221 for ; Wed, 5 Mar 2014 05:02:30 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2772020218 for ; Wed, 5 Mar 2014 05:02:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E2DEBFA29C; Tue, 4 Mar 2014 21:02:20 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 6191CFA29C for ; Tue, 4 Mar 2014 21:02:00 -0800 (PST) Received: by mail-pd0-f177.google.com with SMTP id g10so545370pdj.36 for ; Tue, 04 Mar 2014 21:02:00 -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=rb4lIVY5AkIDlYjmGfsKQmEWeuiwEPehxA0tNN4Z6vE=; b=lvYmrAZtVgIDfi35/wE0FdKIlaWNocG32aYWwNoDMXqJQCzqATK8IrGxSUaoBPhJyq GNqQX4mVdUcOxr+waF2K4kHetxmFcUJdEJJTBwQ5m8vyascnmkYi0GRBMJzKfnkw2lya DteCaMY5Q6VUF3cs2kcbKibWY4KBLsfEpAXVo= 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=rb4lIVY5AkIDlYjmGfsKQmEWeuiwEPehxA0tNN4Z6vE=; b=hl1BLQjvTYpMKSmy16O89UBp1Lgs2EKLvBiMm2hNMvLGh/RWjmMNgXdjz7aqk/GVMd Y8U04DhFbyjUgRsnTK5CbWi1ic0bTL9tPUEiI5gq44kVV3Iy6IPvuZGvT8wzwPwShD7H h0e+hJi3jYP2uwinztDQO9n/ZH+zI4CxDjmfaIjmp0wCwME6C3rwBjYpcJSaDQE+aZ2d IoVnwR1sa0g26hwFFBP4zslezhUXCaE4hrOmFI+okuLTWgQow85UFEH+l1eFzs3BzqiJ AHZeyzcOOb+40kXw5ZCgaHUToXZHFweTKEmYrfKTmbOh3Nq542LkDhitrlTY3Mg/P1W+ sLrA== X-Gm-Message-State: ALoCoQn+Sy591jAgSTUacSjtLmZgrvb5wCkhXN/nGCu9T6gnsDrwjO0CIJ648MUkIf2XlzcdLNJ7 X-Received: by 10.68.131.202 with SMTP id oo10mr4188258pbb.35.1393995720078; Tue, 04 Mar 2014 21:02:00 -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.01.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 21:01:59 -0800 (PST) From: Daniel Kurtz To: dri-devel@lists.freedesktop.org, Inki Dae Subject: [PATCH 2/8] exynos: fix two warnings Date: Tue, 4 Mar 2014 21:01:38 -0800 Message-Id: <1393995704-29184-3-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 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 --- 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;