From patchwork Thu Sep 5 11:31:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2854412 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 9F5F79F3DC for ; Fri, 6 Sep 2013 07:03:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E9DF320319 for ; Fri, 6 Sep 2013 07:03:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 3F90F20150 for ; Fri, 6 Sep 2013 07:02:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E930E5EBD for ; Fri, 6 Sep 2013 00:02:56 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by gabe.freedesktop.org (Postfix) with ESMTP id C21EDE5C8B for ; Thu, 5 Sep 2013 04:49:30 -0700 (PDT) Received: by mail-pd0-f176.google.com with SMTP id q10so1685893pdj.21 for ; Thu, 05 Sep 2013 04:49:30 -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:in-reply-to :references; bh=6eXNQ41S+0T5L9CU7w+A/ZOGe/te7xB4Hxor5pa4XQ0=; b=hKyYFeddHmbgf/LP7op9PvK630Rqs2la825FZWX2gOMWocg6pM7e2d25yVml1MDI9l tc/q0fJTkfBNELQVd5Vs5/SyTgcKWTBaTmORX1M+8CU6nb/hY2nPqSFpEJzRnIZi5W/O /gepl0fFHk18O8dzE9zlnnDQYcIyKe9UBcojowaemwvMJ8u1Nwl8QXJz4CrEnwE0DPcN dnbnR6MVp74pj/CEaPJuXPGz7BjEWSs6WA3bS3ZOJ8eM+jAMkqj3wnBKouCKUWfFp1FU 5tBxEDC2AWgi+PlNm3O2qZlOBQ/dZVoSnekdMcX7F9EaCeBxXkOer24+53xSemwGWu1V n2Aw== X-Gm-Message-State: ALoCoQkxIYdre1SLk37DDREs/EP7IQA0L3MG+ORCzU7WVN1HodATpmVpmj2U7rqOTibHw4cv8amI X-Received: by 10.68.60.226 with SMTP id k2mr8748863pbr.146.1378381770444; Thu, 05 Sep 2013 04:49:30 -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:29 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm/exynos: Fix address space warnings in exynos_drm_fbdev.c Date: Thu, 5 Sep 2013 17:01:36 +0530 Message-Id: <1378380696-13446-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378380696-13446-1-git-send-email-sachin.kamat@linaro.org> References: <1378380696-13446-1-git-send-email-sachin.kamat@linaro.org> X-Mailman-Approved-At: Thu, 05 Sep 2013 22:52:36 -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 Silences the following warnings: drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40: warning: incorrect type in assignment (different address spaces) drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40: expected void [noderef] *kvaddr drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40: got void * drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48: warning: incorrect type in assignment (different address spaces) drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48: expected void [noderef] *kvaddr drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48: got void * Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c index 78e868b..e7c2f2d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c @@ -99,12 +99,13 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, if (is_drm_iommu_supported(dev)) { unsigned int nr_pages = buffer->size >> PAGE_SHIFT; - buffer->kvaddr = vmap(buffer->pages, nr_pages, VM_MAP, + buffer->kvaddr = (void __iomem *) vmap(buffer->pages, + nr_pages, VM_MAP, pgprot_writecombine(PAGE_KERNEL)); } else { phys_addr_t dma_addr = buffer->dma_addr; if (dma_addr) - buffer->kvaddr = phys_to_virt(dma_addr); + buffer->kvaddr = (void __iomem *)phys_to_virt(dma_addr); else buffer->kvaddr = (void __iomem *)NULL; }