From patchwork Thu Sep 5 11:31:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2854411 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 470019F3DC for ; Fri, 6 Sep 2013 07:02:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F83E20316 for ; Fri, 6 Sep 2013 07:02:10 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 061892030B for ; Fri, 6 Sep 2013 07:02:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 19409E5C12 for ; Fri, 6 Sep 2013 00:02:09 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 62F91E6414 for ; Thu, 5 Sep 2013 04:49:28 -0700 (PDT) Received: by mail-pb0-f44.google.com with SMTP id xa7so1689177pbc.17 for ; Thu, 05 Sep 2013 04:49:28 -0700 (PDT) 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; bh=uLlS68oLdXBFpLxl+S7lt1ACx6BOCO9bmD/w4J35rZM=; b=KaygkFLcfkjLd6kfPfb+TIAmjdzGMGhmteXOpdO6hk9VXAgKJAffVMpi4I6bZ0cTti MCZR267H/WWEcX6Xa74igDmBVy2TeOcwiV7wF+a2H6orjGSYr5PHoQ45MU18CU7ImcKl FF1OK8iGsajxt4nO/ssuKn5+XXCEutEUmSLlo0GZmo26I6zPE6RaU2WEtyekn3NirnAz U5QMRZNS7P3SiT70JKEylNLpSV/IFaLXmYSkWYjZYNYXQxRsIodXPHvKM7nw5S34NM0i b+ZD5vC51629BmnwRTnIDnyY+GIl1fgtW1eLNU0Iak4sEaG3BWAUFKD9ySBZ4MIhMdHB CSqw== X-Gm-Message-State: ALoCoQloBTXjQ1OJQQ369oXE7i4Px8a708hTaQ2DdzZK8+MTBa8h0Eqlo7078lnkjxPZjsS8H+Wb X-Received: by 10.66.226.46 with SMTP id rp14mr8790475pac.133.1378381768071; Thu, 05 Sep 2013 04:49:28 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id yo2sm37486983pab.8.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 04:49:27 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/exynos: Fix address space warning in exynos_drm_buf.c Date: Thu, 5 Sep 2013 17:01:35 +0530 Message-Id: <1378380696-13446-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Mailman-Approved-At: Thu, 05 Sep 2013 22:52:15 -0700 Cc: sachin.kamat@linaro.org 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+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Fixes the following warning: drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29: warning: incorrect type in assignment (different address spaces) drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29: expected void [noderef] *kvaddr drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29: got void * Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_drm_buf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_buf.c b/drivers/gpu/drm/exynos/exynos_drm_buf.c index 3445a0f..d20a7af 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_buf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_buf.c @@ -63,7 +63,8 @@ static int lowlevel_buffer_allocate(struct drm_device *dev, return -ENOMEM; } - buf->kvaddr = dma_alloc_attrs(dev->dev, buf->size, + buf->kvaddr = (void __iomem *)dma_alloc_attrs(dev->dev, + buf->size, &buf->dma_addr, GFP_KERNEL, &buf->dma_attrs); if (!buf->kvaddr) {