From nobody Tue Sep 16 03:04:55 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE8FFC54EBC for ; Sat, 7 Jan 2023 17:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232819AbjAGRYg (ORCPT ); Sat, 7 Jan 2023 12:24:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232609AbjAGRXv (ORCPT ); Sat, 7 Jan 2023 12:23:51 -0500 Received: from sender-of-o50.zoho.in (sender-of-o50.zoho.in [103.117.158.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 637074D483 for ; Sat, 7 Jan 2023 09:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673112190; cv=none; d=zohomail.in; s=zohoarc; b=GlWiU6ZxclryKvwhjks2+3VUiR3MsGc2506CbSsMTIjnuHRpg+yDsVyYl6TfBgkF9puns7pC4QcuHo5414Z0jXyfoPAimxotQHYzhEAWY029ugxca9zGj/CLwe+owIDtAnMF2AKOpjsPmtYI9wGYQHjdViq5VOaqm9ZJiicuTpg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1673112190; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=vDU7G83TY944n7aJ7AYG6c6+m7Oj3HDIQ3X/IYcsZW0=; b=OYNMDUFeDzzgXx7YFUr0QqZXAVXLvVZRD2hYYF4v0iBY2XA5XIaOv/Rm+r/cVIRg2Rp51apwJTTLPRQEogdTxkXD5nK2FHvipwE/YZUYIaObjO2vEpTw+xcQ3sl3kgrTZDi0nDM1zV7xoabJxYmfDGVqHOYgJgSHrZ6z7tOey/g= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1673112190; s=zmail; d=siddh.me; i=code@siddh.me; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=vDU7G83TY944n7aJ7AYG6c6+m7Oj3HDIQ3X/IYcsZW0=; b=kINyEyP9m+UHRbI5SzDkbdoHwdWBtDycxr44ZKWHR5aHDB7wpA5ofJbCU7wbHnO+ NUTzcvtOKqwtogBVYbTSHweFrxvnwy8cRkEd+2WePzpU9Rek/a8uJxQU+Ktfx+uxmA8 dtH0rOqLGpHKnvvuMHL32UcPD+xP6f5gFY1SRrzU= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1673112189995790.9263747834939; Sat, 7 Jan 2023 22:53:09 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Simon Ser , Jim Cromie Cc: dri-devel , linux-kernel Message-ID: Subject: [PATCH v5 09/10] drm/drm_blend: Remove usage of deprecated DRM_DEBUG_ATOMIC Date: Sat, 7 Jan 2023 22:52:29 +0530 X-Mailer: git-send-email 2.39.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" drm_print.h says DRM_DEBUG_ATOMIC is deprecated in favor of drm_dbg_atomic(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_blend.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c index b4c8cab7158c..6e74de833466 100644 --- a/drivers/gpu/drm/drm_blend.c +++ b/drivers/gpu/drm/drm_blend.c @@ -450,8 +450,8 @@ static int drm_atomic_helper_crtc_normalize_zpos(struct= drm_crtc *crtc, int i, n =3D 0; int ret =3D 0; =20 - DRM_DEBUG_ATOMIC("[CRTC:%d:%s] calculating normalized zpos values\n", - crtc->base.id, crtc->name); + drm_dbg_atomic(dev, "[CRTC:%d:%s] calculating normalized zpos values\n", + crtc->base.id, crtc->name); =20 states =3D kmalloc_array(total_planes, sizeof(*states), GFP_KERNEL); if (!states) @@ -469,9 +469,8 @@ static int drm_atomic_helper_crtc_normalize_zpos(struct= drm_crtc *crtc, goto done; } states[n++] =3D plane_state; - DRM_DEBUG_ATOMIC("[PLANE:%d:%s] processing zpos value %d\n", - plane->base.id, plane->name, - plane_state->zpos); + drm_dbg_atomic(dev, "[PLANE:%d:%s] processing zpos value %d\n", + plane->base.id, plane->name, plane_state->zpos); } =20 sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL); @@ -480,8 +479,8 @@ static int drm_atomic_helper_crtc_normalize_zpos(struct= drm_crtc *crtc, plane =3D states[i]->plane; =20 states[i]->normalized_zpos =3D i; - DRM_DEBUG_ATOMIC("[PLANE:%d:%s] normalized zpos value %d\n", - plane->base.id, plane->name, i); + drm_dbg_atomic(dev, "[PLANE:%d:%s] normalized zpos value %d\n", + plane->base.id, plane->name, i); } crtc_state->zpos_changed =3D true; =20 --=20 2.39.0