From patchwork Mon Jul 13 07:07:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 235307 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2589908ilg; Mon, 13 Jul 2020 00:07:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu17IvwKnQB1JHJhWhmye6+AsLiWyUz8ZiCR5qPP8pDZpeN8+wLxMYKI8xOdq5F1T/QWFt X-Received: by 2002:a05:6402:1ade:: with SMTP id ba30mr28996236edb.231.1594624041114; Mon, 13 Jul 2020 00:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594624041; cv=none; d=google.com; s=arc-20160816; b=jd5u/mnAC0XHqLJ15bfFbOH6pATSmg4QsCXAScxfHS8e2aAe3F8gP6WlEkJXS61ZG5 lSbDHX/xQYtRl/OXq5sY7fmwDOTJbC9H23IKFxjkC79pRljPq23L+bzIW3SGMfYuysgX dI5ZzJvQXZxv2/s7YNh9j1OeUIOjfIktPHMEleyz7aDGkKea/S/GMu9/RmvmJs9CoYEn ZJ+KJFR7LTbKN1qFCyBtlCxaafTZ/EFDPw6jeHOqHnM+QhouQzyH1WafsXaRajsMZNKn U4L6QNCswmrR3kWc94cbGKTbhQg0EA5rO2te1gcg8jm9SQPgzNHu9rsFAlEOeF76h48E uoPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=hSmfiESY4gB9ib5XNiqxLH81veQgiWoipvY19BxXQgk=; b=LZoKIpQY+zdsL83lKLw5hnd5odlCnP1WgoRAt48vU2lpIZ5bqPqC0VDxlDJL91Nj5S X+B78Q7dFzVENpo26J2e56x97dXM1LMA/ExtDy9EqC+mqLRhwOnBlkzQjVFrAauLHxKi O1wvckM4BPD1+V26EG37OQYKRnhD+gG4JWOQ2iMfW0MbAvyKeL/GLU1fpzqzRG0mI27F H7+cQwDsGJv5sfbBLjg4wSzFiQG+2vuxMhwxeunHqP3AV8rgdhlezzVDzD5VAc/ac9jh vkDEoYhdjbJitTVpIu45vxRC6tvvyJOG6g+VHYNcKQSjCxkCb3A4kfrogVWC2unR+AfK rCgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=btX23yxP; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si9083900edx.179.2020.07.13.00.07.20; Mon, 13 Jul 2020 00:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=btX23yxP; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726360AbgGMHHU (ORCPT + 3 others); Mon, 13 Jul 2020 03:07:20 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34104 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbgGMHHU (ORCPT ); Mon, 13 Jul 2020 03:07:20 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200713070718euoutp01493f60d7cc035ff53a8eb738d7eff9f9~hPh1bBh380056000560euoutp016 for ; Mon, 13 Jul 2020 07:07:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200713070718euoutp01493f60d7cc035ff53a8eb738d7eff9f9~hPh1bBh380056000560euoutp016 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594624038; bh=hSmfiESY4gB9ib5XNiqxLH81veQgiWoipvY19BxXQgk=; h=From:To:Cc:Subject:Date:References:From; b=btX23yxPuieoNPrhCcti7vC89QOANmzRWaXM8lIUOV5o417CMaLTZMAhORq16DTwm ujgJJLCLQPeFAkr5+9SjNnNFYVlJh+yp72ol/LVkbgqA7gZDY3AjsELkLqjPRyFVeY C2+GdRHvm8nDXSQdgM11+2qpdP+topmk0IVtQuAY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200713070718eucas1p20bca8bcf67d6d1ff0fcf4c2e1fa34cd2~hPh1M-bCA0061500615eucas1p2N; Mon, 13 Jul 2020 07:07:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 61.81.06318.6280C0F5; Mon, 13 Jul 2020 08:07:18 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200713070718eucas1p2e717879ea21a6cc8a8945d1b0b766b6c~hPh0yGHko2232322323eucas1p25; Mon, 13 Jul 2020 07:07:18 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200713070718eusmtrp1e6bc82ef7d57f4979b8a185c4f78dd93~hPh0xXmoj0058100581eusmtrp1_; Mon, 13 Jul 2020 07:07:18 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-4f-5f0c0826d5f6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 94.15.06314.6280C0F5; Mon, 13 Jul 2020 08:07:18 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200713070717eusmtip29e7b1fa936192ccad8b1714ec3926541~hPh0Uzg1A3221632216eusmtip2X; Mon, 13 Jul 2020 07:07:17 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Bartlomiej Zolnierkiewicz , Seung-Woo Kim , Inki Dae , Andrzej Hajda , Sam Ravnborg Subject: [PATCH v2] drm/exynos: gem: Fix sparse warning Date: Mon, 13 Jul 2020 09:07:08 +0200 Message-Id: <20200713070708.30828-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPIsWRmVeSWpSXmKPExsWy7djP87pqHDzxBg8XqFjcWneO1WLjjPWs Fle+vmezmHR/AovFjPP7mCzWHrnLbrHi51ZGixmTX7I5cHjc7z7O5LFk2lU2j74tqxg9Pm+S C2CJ4rJJSc3JLEst0rdL4Mq48/8+Y8E3noorv6+yNTD+5epi5OSQEDCRuPvhFGMXIxeHkMAK RolHzzYwQzhfGCV6ZvZDZT4zSrzpXsYC03L9QgsrRGI5o8TVH6dY4FoWdtxnBKliEzCU6Hrb xQZiiwi4STQdngnWwSzwi1Gi9+g1sISwgLnE/KOLwMayCKhKPJrwE6iIg4NXwFbiRVcyxDZ5 idUbDjBD2LfZJP7cKISwXSTurd7DCmELS7w6voUdwpaROD25B+wgCYFmRomH59ayQzg9jBKX m2YwQlRZS9w594sNZBmzgKbE+l36EGFHid1nHzCBhCUE+CRuvBUECTMDmZO2TWeGCPNKdLQJ QVSrScw6vg5u7cELl6DO9JCYM7cD7DQhgViJux/vsk9glJuFsGsBI+MqRvHU0uLc9NRi47zU cr3ixNzi0rx0veT83E2MwGRw+t/xrz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+H5iLqMVR5y/Fkv3DGEXgR/Ffh9i2Thk9lz7vnHBqbVKLMUZiYZazEXFiQAT PNKsVwIAAA== X-CMS-MailID: 20200713070718eucas1p2e717879ea21a6cc8a8945d1b0b766b6c X-Msg-Generator: CA X-RootMTR: 20200713070718eucas1p2e717879ea21a6cc8a8945d1b0b766b6c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200713070718eucas1p2e717879ea21a6cc8a8945d1b0b766b6c References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org kvaddr element of the exynos_gem object points to a memory buffer, thus it should not have a __iomem annotation. Then, to avoid a warning or casting on assignment to fbi structure, the screen_buffer element of the union should be used instead of the screen_base. Reported-by: kernel test robot Suggested-by: Sam Ravnborg Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_gem.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 Reviewed-by: Sam Ravnborg diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c index 56a2b47e1af7..5147f5929be7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c @@ -92,7 +92,7 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, offset = fbi->var.xoffset * fb->format->cpp[0]; offset += fbi->var.yoffset * fb->pitches[0]; - fbi->screen_base = exynos_gem->kvaddr + offset; + fbi->screen_buffer = exynos_gem->kvaddr + offset; fbi->screen_size = size; fbi->fix.smem_len = size; diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.h b/drivers/gpu/drm/exynos/exynos_drm_gem.h index 7445748288da..74e926abeff0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.h +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.h @@ -40,7 +40,7 @@ struct exynos_drm_gem { unsigned int flags; unsigned long size; void *cookie; - void __iomem *kvaddr; + void *kvaddr; dma_addr_t dma_addr; unsigned long dma_attrs; struct sg_table *sgt;