From mboxrd@z Thu Jan 1 00:00:00 1970 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 2C814C3DA7A for ; Tue, 20 Dec 2022 20:18:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234284AbiLTUR6 (ORCPT ); Tue, 20 Dec 2022 15:17:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233782AbiLTURh (ORCPT ); Tue, 20 Dec 2022 15:17:37 -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 686DDC2 for ; Tue, 20 Dec 2022 12:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671567418; cv=none; d=zohomail.in; s=zohoarc; b=RxpB9Qx89WiayJO/tFTPgNV32PzkUlETnWLKRcX8u+AnwyHQhTCH2R615iv8lwMrDhB37f8aU36eP5vpVIMtCQJx6fpK8QFoCq8MkqeLvexDTL0yi7HQbbDcxNnNQok9bQpkoGh/MLRIdrY8HUQ++SwNeg6X9WGCe5l+e7eBXWQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1671567418; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=8orTNZ7jH2IbVd6BJiHzi5ZaE1cvsLVmvg/u/utvjZI=; b=C09vsTbVxoiz51tNkaCe9OVR6oEz8Uo1uolntirF0lnQjckcj73wq4LtU1Oqlhuo8cdyMW2DhnhT2YDiIpzvKSPT+bBgWFBzgCrroU66oMk7kyJ2REtff4aqhkJNHbCarqysbeGmpQTIuFIsQjftL9valWwvcEM2pLdNIz5hfdY= 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=1671567418; 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=8orTNZ7jH2IbVd6BJiHzi5ZaE1cvsLVmvg/u/utvjZI=; b=ANsucVNkTucFGn5//1vyncsUXHFq8K2uGUNYDW9fTXlRST1JWlOTtrjrEC7PpM4A amC2C8LflBqaWhOjzt2X3rnGnxGYDt1U4VEiQS4NZyvdC5xvDh3Z4X9QPfU9plwurgR 2vSsWR2GGHhCTWX/BCaswIN+eHAcsCtOFU08zs3I= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1671567418345814.024395625998; Wed, 21 Dec 2022 01:46:58 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel , linux-kernel Message-ID: Subject: [PATCH 01/10] drm: Remove usage of deprecated DRM_INFO Date: Wed, 21 Dec 2022 01:46:36 +0530 X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drm_print.h says DRM_INFO is deprecated. Thus, use newer printing macros drm_info() and pr_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 ++++--- drivers/gpu/drm/drm_drv.c | 2 +- drivers/gpu/drm/drm_pci.c | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm/drm_cli= ent_modeset.c index d553e793e673..2b76d4828c5f 100644 --- a/drivers/gpu/drm/drm_client_modeset.c +++ b/drivers/gpu/drm/drm_client_modeset.c @@ -335,7 +335,7 @@ static bool drm_client_target_cloned(struct drm_device = *dev, =09=09DRM_DEBUG_KMS("can clone using 1024x768\n"); =09=09return true; =09} -=09DRM_INFO("kms: can't enable cloning when we probably wanted to.\n"); +=09drm_info(dev, "kms: can't enable cloning when we probably wanted to.\n"= ); =09return false; } =20 diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connecto= r.c index 547356e00341..34c26b2a974e 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -165,13 +165,14 @@ static void drm_connector_get_cmdline_mode(struct drm= _connector *connector) =09=09return; =20 =09if (mode->force) { -=09=09DRM_INFO("forcing %s connector %s\n", connector->name, -=09=09=09 drm_get_connector_force_name(mode->force)); +=09=09drm_info(connector->dev, "forcing %s connector %s\n", +=09=09=09 connector->name, drm_get_connector_force_name(mode->force)); =09=09connector->force =3D mode->force; =09} =20 =09if (mode->panel_orientation !=3D DRM_MODE_PANEL_ORIENTATION_UNKNOWN) { -=09=09DRM_INFO("cmdline forces connector %s panel_orientation to %d\n", +=09=09drm_info(connector->dev, +=09=09=09 "cmdline forces connector %s panel_orientation to %d\n", =09=09=09 connector->name, mode->panel_orientation); =09=09drm_connector_set_panel_orientation(connector, =09=09=09=09=09=09 mode->panel_orientation); diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 73b845a75d52..bc98e4bcf2c1 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -938,7 +938,7 @@ int drm_dev_register(struct drm_device *dev, unsigned l= ong flags) =09if (drm_core_check_feature(dev, DRIVER_MODESET)) =09=09drm_modeset_register_all(dev); =20 -=09DRM_INFO("Initialized %s %d.%d.%d %s for %s on minor %d\n", +=09drm_info(dev, "Initialized %s %d.%d.%d %s for %s on minor %d\n", =09=09 driver->name, driver->major, driver->minor, =09=09 driver->patchlevel, driver->date, =09=09 dev->dev ? dev_name(dev->dev) : "virtual device", diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 39d35fc3a43b..18cf7fa23698 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c @@ -262,7 +262,7 @@ void drm_legacy_pci_exit(const struct drm_driver *drive= r, =09=09} =09=09mutex_unlock(&legacy_dev_list_lock); =09} -=09DRM_INFO("Module unloaded\n"); +=09pr_info("Module unloaded\n"); } EXPORT_SYMBOL(drm_legacy_pci_exit); =20 --=20 2.35.1