Message ID | 20200707110859.3822-1-m.szyprowski@samsung.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp805734ilg; Tue, 7 Jul 2020 04:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmrBcSscEgh3zx/PuXOwVMbZBoE2Rtf1LE7VRGDgLD6BlwFfLweCGjTxrtmsdK8EhNtGKv X-Received: by 2002:a17:90a:a106:: with SMTP id s6mr3794401pjp.53.1594120155311; Tue, 07 Jul 2020 04:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594120155; cv=none; d=google.com; s=arc-20160816; b=UU4DGKTXBF/o0IYClH2nFpfQE2veFm8P4WIYAHqOWl5ES4qDsyNZXD5TxVuI2xRGbm gdt4gIAHrjnDSdGXb9/NhZBJAtTz1y0MZxlt0k10Jw5jFXSaiD3FoE0i95tjyjE/q8id pRmZfl67Yu3Z4Jrkr4TvLIzns8kMXXGf2d9JnwM+LPtFfO+IfnP/ibMwTFC5gE+2e/F4 GoozoSh3zO9ML/99nCZ9r67ZvzXxOIkugARMkPpXx01fu5hwcLvSfrUk+VZQhnCOvarx ryPC1Lhxf6eDkJivKmBDOE/GM4iXAXOSrK+ts+1YDn9IM1/8zl6i8kXrgQUxiUddwqkV Iv7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:cms-type:message-id:date:subject:to :from:dkim-signature:dkim-filter:delivered-to; bh=OW0mpunUIOkMoF/4fgVO3qyefN3OMWoWy82DIrvCF8c=; b=tIg1crgWc7mA0M23sOV+XL5Thh7AF2MAxHumZutW0Dxry5H5OMinO+Zut9eGRWBVg/ gULfkC49GQ8uG74sG43+X2riz8RpSz8B4mgYFoQ4fWU6tHtxHyLWnK+U5iAiDAfweWTE Hoc16rjUQq2iW3Q8rCl2lM1CJ3h/x9tPfQbXtDPVUX5AqAnkhzZqTyFtYH39K2Kct40g eQLjqHTZI/2xQ+r/vC2tQP1c5eVxAJZi+cXoF9lDoR9ntIN+8Aj7VtnEvpT4bo7iWPYV syzJOzsFqL2mGxR81iw+EmV3dd3c8vIwhSJMAhT/72Kk+h/WDzIBhkkZ23WzQSyPoIls yAYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=LRyVEGLM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id mr23si1468508pjb.59.2020.07.07.04.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 04:09:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=LRyVEGLM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4952D89D64; Tue, 7 Jul 2020 11:09:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id A8A4389D64 for <dri-devel@lists.freedesktop.org>; Tue, 7 Jul 2020 11:09:13 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200707110912euoutp01a72f62bc157cc7ab4069e2ce9f1f1d28~fc9UmBvnk2636926369euoutp01q for <dri-devel@lists.freedesktop.org>; Tue, 7 Jul 2020 11:09:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200707110912euoutp01a72f62bc157cc7ab4069e2ce9f1f1d28~fc9UmBvnk2636926369euoutp01q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594120152; bh=ZMkEvaJNAdjnIUQSykqZ13TdaXgLLlmLzYW2nWTOa2Y=; h=From:To:Cc:Subject:Date:References:From; b=LRyVEGLMxzpPJBo22A55x2xwXZDUbeak50C/zSADqIjL6W+U6Tn7HGrx3czHIuA8d LKZRUpNpNm0gncZKAR3EdIrF6Xa5/a/w/yCX3MWjCMwsRQkmyTGGMXyQgOcAY5cWv3 pwrTWceySwAt7ZdPsYEkjGNoqxB9oTkCt82o/R+M= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200707110912eucas1p165fa760920130bbfc979580b4a84fb36~fc9USwYCc0474204742eucas1p1_; Tue, 7 Jul 2020 11:09:12 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id D4.25.05997.8D7540F5; Tue, 7 Jul 2020 12:09:12 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200707110911eucas1p1e21621f402b2aac89457647c3b2ad46f~fc9Tsg9VY0474204742eucas1p19; Tue, 7 Jul 2020 11:09:11 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200707110911eusmtrp25305f326f8b94d9f8a36ca04de0b60d1~fc9Tr79gJ3052730527eusmtrp2a; Tue, 7 Jul 2020 11:09:11 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-0d-5f0457d81115 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DA.76.06314.7D7540F5; Tue, 7 Jul 2020 12:09:11 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200707110910eusmtip29ae819d5e368c4389517d19fe2b3d76c~fc9TMgJ4J2655526555eusmtip2g; Tue, 7 Jul 2020 11:09:10 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] drm/exynos: gem: Fix sparse warning Date: Tue, 7 Jul 2020 13:08:59 +0200 Message-Id: <20200707110859.3822-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGIsWRmVeSWpSXmKPExsWy7djP87o3wlniDZ4sZrG4te4cq8XGGetZ La58fc9mMen+BBaLGef3MVmsPXKX3WLG5JdsDuwe97uPM3n0bVnF6PF5k1wAcxSXTUpqTmZZ apG+XQJXRsuy86wFN9krPl6ZwNTAeImti5GTQ0LAROLAryssXYxcHEICKxglTjx5B+V8YZRY uX0FE4TzmVFi+adPLDAtHU3noaqWM0psOn+cEa7l3MJl7CBVbAKGEl1vu8CWiAi4STQdnskK UsQscJ1R4tuPRWBFwkCj/uzYCFbEIqAqMePKEkYQm1fARmLKvgVMEOvkJVZvOMAM0iwhcIRN 4tCEu8wQCReJLd9b2SFsYYlXx7dA2TIS/3fOZ4JoaGaUeHhuLTuE08MocblpBiNElbXEnXO/ gFZzAN2kKbF+lz5E2FFi17ZdjCBhCQE+iRt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3jIP+ycrGIcLZTTL7/dRYsEpv+w9lmS/PjzW/uRbZ7 1GpfziqzPvvqoertuYqmBVxvO60XCLQtXxMZt7mvXVhincpiF+emMuey7cd5BRpaI7+zf449 mpfL25osfm/Vx9Z+8St2YYxf52znmH3Z8eNxJZbijERDLeai4kQAdQV8s08CAAA= X-CMS-MailID: 20200707110911eucas1p1e21621f402b2aac89457647c3b2ad46f X-Msg-Generator: CA X-RootMTR: 20200707110911eucas1p1e21621f402b2aac89457647c3b2ad46f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200707110911eucas1p1e21621f402b2aac89457647c3b2ad46f References: <CGME20200707110911eucas1p1e21621f402b2aac89457647c3b2ad46f@eucas1p1.samsung.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Andrzej Hajda <a.hajda@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Seung-Woo Kim <sw0312.kim@samsung.com>, Marek Szyprowski <m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
drm/exynos: gem: Fix sparse warning
|
expand
|
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index efa476858db5..65d11784f29f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -59,7 +59,7 @@ static int exynos_drm_alloc_buf(struct exynos_drm_gem *exynos_gem, bool kvmap) } if (kvmap) - exynos_gem->kvaddr = exynos_gem->cookie; + exynos_gem->kvaddr = (void __iomem *)exynos_gem->cookie; DRM_DEV_DEBUG_KMS(to_dma_dev(dev), "dma_addr(0x%lx), size(0x%lx)\n", (unsigned long)exynos_gem->dma_addr, exynos_gem->size);
Add a proper cast on the exynos_gem->kvaddr assignment to avoid a sparse warning. Reported-by: kernel test robot <lkp@intel.com> Fixes: 9940d9d93406 ("drm/exynos: gem: Get rid of the internal 'pages' array") Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel