From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D75BC3016E0 for ; Wed, 6 May 2026 06:36:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778049377; cv=none; b=CMicc38iupjHeInWcZD2miwAjRCnCyXEyZjk0ak3QviIKvbG2nM1SDXsbhLEKBSbZMPgf7epNzXJ/XFX6pvSczCE4YDpk5J7FeUxU1jP/Zwqezt2lBOr6yZJXUT+7QsoWNiXD/1DlOnT3DmSJQxwwoC3XzkZqGZDbqiHfgboPe4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778049377; c=relaxed/simple; bh=t3jzYTjKOIf5rf/+jFpFaFxhgvZdBdcVaGmqBtnYVP0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type:References; b=TnDytlk9PPcfPB9n6+1/tGtXZD/yC9rLmgTuDE06qf8aaY8vzSHBD4Rf2VCTXlRC2kP48FU+CfAQec0DbS52h/QjFb9Ws0p7TbrcJd2gNC66eq2CGO9mIX1gv49fBCKflVKbPWQAlFIudltM3xCNrGGIRMQKqMrDy1umicLsdU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=tBkFY0Kn; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="tBkFY0Kn" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20260506063613euoutp02e58f039c7b0026c4f5483aa770d2fd79~s5nwxJ4121483614836euoutp02V for ; Wed, 6 May 2026 06:36:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20260506063613euoutp02e58f039c7b0026c4f5483aa770d2fd79~s5nwxJ4121483614836euoutp02V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1778049374; bh=UAOX7g+36grI83zuNghQw07p7liRfgICgVlYKc3Nluo=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=tBkFY0KnbNbL7mqrZZLt4TmLURhgSco8cBjnYwUNKXSJRjsDoYHn4VKvY5cyIQ/kj +RTc7unxuyTPktcbg4qCNKvS8EaO0MSNy1vaenPrBI6nYZh0bouh4l6bdaNJpeYxe2 Xt7o54cnUqRoGkMxha75sPFuNX746qzb4QHENLYw= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20260506063613eucas1p22e2010cea14e69222bfde5d3504571a1~s5nwfFy_d1876018760eucas1p2X; Wed, 6 May 2026 06:36:13 +0000 (GMT) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20260506063612eusmtip2ba00c35a881fca512a095dc19595a723~s5nvKmbT_2580225802eusmtip2w; Wed, 6 May 2026 06:36:12 +0000 (GMT) Message-ID: <19fbdfbd-71f5-4e92-8525-aaeddcbf4467@samsung.com> Date: Wed, 6 May 2026 08:36:11 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Betterbird (Windows) Subject: Re: [PATCH] drm/exynos/gem: Fix printk specifier for gem_object.size and dma_addr To: Chen-Yu Tsai , Inki Dae , Seung-Woo Kim , Kyungmin Park , Krzysztof Kozlowski , Alim Akhtar Cc: David Airlie , Simona Vetter , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel test robot Content-Language: en-US From: Marek Szyprowski In-Reply-To: <20260408064936.1342321-1-wenst@chromium.org> Content-Transfer-Encoding: 7bit X-CMS-MailID: 20260506063613eucas1p22e2010cea14e69222bfde5d3504571a1 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20260408064951eucas1p14200e8d85d270f16435e38af36dbcae0 X-EPHeader: CA X-CMS-RootMailID: 20260408064951eucas1p14200e8d85d270f16435e38af36dbcae0 References: <20260408064936.1342321-1-wenst@chromium.org> On 08.04.2026 08:49, Chen-Yu Tsai wrote: > In the recent change to use the GEM base object's size field instead of > the exynos_gem object's additional field, the printk format was not > adjusted for the change to size_t type. This causes a new warning on > platforms on which size_t is not unsigned long. > > Fix this by using the correct "%zx" type. > > While at it, fix the specifier for dma_addr so that the cast to unsigned > long is not longer needed. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202604081331.jSJQSVmg-lkp@intel.com/ > Fixes: 11e898373fba ("drm/exynos: Drop exynos_drm_gem.size field") > Signed-off-by: Chen-Yu Tsai Acked-by: Marek Szyprowski > --- > This is only compile tested. Build for ARM 32-bit confirms the warning > is fixed. Sorry for the noise. > > The commit hash used in the Fixes tag is the current one seen in > exynos-drm-next. > --- > drivers/gpu/drm/exynos/exynos_drm_gem.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c > index d9d42809a1a9..f264e170bc26 100644 > --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c > +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c > @@ -66,8 +66,8 @@ static int exynos_drm_alloc_buf(struct exynos_drm_gem *exynos_gem, bool kvmap) > if (kvmap) > exynos_gem->kvaddr = exynos_gem->cookie; > > - DRM_DEV_DEBUG_KMS(drm_dev_dma_dev(dev), "dma_addr(0x%lx), size(0x%lx)\n", > - (unsigned long)exynos_gem->dma_addr, exynos_gem->base.size); > + DRM_DEV_DEBUG_KMS(drm_dev_dma_dev(dev), "dma_addr(%pad), size(0x%zx)\n", > + &exynos_gem->dma_addr, exynos_gem->base.size); > return 0; > } > > @@ -80,8 +80,8 @@ static void exynos_drm_free_buf(struct exynos_drm_gem *exynos_gem) > return; > } > > - DRM_DEV_DEBUG_KMS(dev->dev, "dma_addr(0x%lx), size(0x%lx)\n", > - (unsigned long)exynos_gem->dma_addr, exynos_gem->base.size); > + DRM_DEV_DEBUG_KMS(dev->dev, "dma_addr(%pad), size(0x%zx)\n", > + &exynos_gem->dma_addr, exynos_gem->base.size); > > dma_free_attrs(drm_dev_dma_dev(dev), exynos_gem->base.size, exynos_gem->cookie, > (dma_addr_t)exynos_gem->dma_addr, Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland