Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7505875rwd; Tue, 6 Jun 2023 11:42:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ljtdPq5iU8N4wsLIgLJk/UZxM9f1EeFj0AGrIUIurH5mM1TZzorerBnlnUXGT1OQdF3b0 X-Received: by 2002:a05:620a:846:b0:75b:23a1:d844 with SMTP id u6-20020a05620a084600b0075b23a1d844mr807614qku.6.1686076921834; Tue, 06 Jun 2023 11:42:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686076921; cv=pass; d=google.com; s=arc-20160816; b=SBcZeNyT8qFQ49Zc2w7PDrFdckx1W6mXRx58QSOXx2qOcG0UVsI67ZXwKp+nePnx89 C02nlN+yJUP+nd+JXWGNlDXhVbHMFuZBjR12l3dHotGKOTvEjCtkhOYQ3l7oPbYdMVKg GiEPvthG26BTCLlKciV8CnEj8Y8FxEB2SbHi5pIpitBRAcHmgES9Iy8KkIt3LZnxeRes j1I24rMa1V7J9vK3rvODDFEAHtVecFhsE1vZn0T9fyEnz3IZEa62wodoMxykDCXJducM Mvn9VUNQxxBwRIEduD0lvl/CTBj2LUgdigd9nRDffai0gjD1V1LWxKLyiFEG0lz1j5Bj V8fQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=cl03iPbszoY1ulXeWyy4kFcOXDGykKuT85fVuI02SQ4=; b=pljJu2CW0J+c39/80bv5PUbUQvmMJyK+IjXoAWQbtIL8eoM9J+ZvQz+i2mkvyy+4zG QpL+RBrmaShgRKXG/C73+vDtyKwFO+tYOsIFHZP89fQHHa4F8T0o7zQBZdRfQHA0e+9I NYdVrOd0ymm5/vK+OwA7hSTyKp7CeC5fYUZB1YqeH9BEO6eONX6NNdH0PznABJviIBBl tOA7zppyC3NdefwhHjln93j/YLi+xb269Z5MABW4szJeV2kiN/L/giOUP5bGll0v5Zi2 /s5Xkm8eSFSgZLR/ASzEooNwXKhuObexhQOF+JC/LUMrh17RzBO8ZgUoK7HNCafcOxW9 P1Nw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=jSmSeVCA; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siddh.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a05620a130900b0075913904050si6256405qkj.88.2023.06.06.11.41.47; Tue, 06 Jun 2023 11:42:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=jSmSeVCA; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238953AbjFFSbR (ORCPT + 99 others); Tue, 6 Jun 2023 14:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238087AbjFFSbL (ORCPT ); Tue, 6 Jun 2023 14:31:11 -0400 Received: from sender-of-o51.zoho.in (sender-of-o51.zoho.in [103.117.158.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D29931702 for ; Tue, 6 Jun 2023 11:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686076229; cv=none; d=zohomail.in; s=zohoarc; b=bdnlhfp6tuzXDFhKwEhrFgVG25OTMFL3ZvrqHq2F9+dSH7iKsxfWIvPn08R3lUX1j1jNE/hx2LOIP0BdlYJeiS8axecLfCK7rd7dLFyJ2tdqN5u10DQkI6wOVz0w70A9VZeWBzIYfZKbsEYfMO41WPjT+tzuGeXlrRW5Ir0MorE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1686076229; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cl03iPbszoY1ulXeWyy4kFcOXDGykKuT85fVuI02SQ4=; b=Q9BEwdbW1itHgA4LQrQZLXaQU2+egUACace2vJGq1d5g0EjWGfRUPuEvcS3QXXjmzDAOOyMd3BqMVJAOmzFGl6z12W/G4d0rDQQfoJaa6apDOk/e/WE6CBJWaSD7V+X5ecMgpYGkocvjHJ4LtFH7VqdHdMXO3rh/6MITm26pP5A= 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=1686076229; 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=cl03iPbszoY1ulXeWyy4kFcOXDGykKuT85fVuI02SQ4=; b=jSmSeVCAQE5TM6GRGc3EN0IMZsYmUmK/3O30zYEXbh9xtTpE59BB7tWyPIlCA1kp ZGMIJyE0+rWE+D8v4rd7mCwYzyZ5X1MK+OWOaBKHLhhnTG0Pw+EUZ2SqaZvrNo1r2Hx CsnP5BGx/gIV/1yXUH3O2jhZVhmxAdqYhQwnJnvc= Received: from kampyooter.. (122.176.141.156 [122.176.141.156]) by mx.zoho.in with SMTPS id 1686076228333728.8236826606964; Wed, 7 Jun 2023 00:00:28 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Jani Nikula , Laurent Pinchart Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Suraj Upadhyay Message-ID: <66a3aa66fa69fb44942d52e8ac3adeac337a400a.1686075579.git.code@siddh.me> Subject: [PATCH v10 3/9] drm: Remove usage of deprecated DRM_INFO in DRM core Date: Wed, 7 Jun 2023 00:00:04 +0530 X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drm_print.h says DRM_INFO is deprecated in favor of drm_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 1b12a3c201a3..ae19734974b5 100644 --- a/drivers/gpu/drm/drm_client_modeset.c +++ b/drivers/gpu/drm/drm_client_modeset.c @@ -331,7 +331,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 48df7a5ea503..dca8dd4ab93f 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -168,13 +168,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 12687dd9e1ac..02eaa4c9344d 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -943,7 +943,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..7dfb837d1325 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"); +=09drm_info(NULL, "Module unloaded\n"); } EXPORT_SYMBOL(drm_legacy_pci_exit); =20 --=20 2.39.2