Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6184328rwl; Mon, 9 Jan 2023 05:23:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXtZqE+wZPdr7A8OMpx86pYlsyzBFwfaWb6ByAqk/lrwqoaokS2m/PPo2dkj162Kh8EmnmAu X-Received: by 2002:a05:6402:2074:b0:48e:a97e:9f2d with SMTP id bd20-20020a056402207400b0048ea97e9f2dmr19691239edb.11.1673270637479; Mon, 09 Jan 2023 05:23:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673270637; cv=pass; d=google.com; s=arc-20160816; b=bcs83Y0ezF5sXZfsdGVvnfajGg69SbfSS5GvhOnpgS5wBcpa3ZePTkVZUr2pRTTdAc 5jLsH6q41QN2MosR1bCONY6ABVsXf6gHjzbNKpcYVbP6voBUXCEN0HcJEWZIMjDJ3ES3 lHFCtMDMU8sZ1pkn7HrZ1fNoPKVJcHPABOldQoks5oUyspGj3EjudOo/qI1XNhgWEGHT tUQjzOryRtCrCn0tVDQrTbjExci4k1qGh4erUFfd46fwVfPw3UFRbERs4fqFAW2Sohdt gulaImg1E57sj0hMM86BtRYRIH4ra7vFO0j5MI5bSp/vP2fY42CDB08We5tB0csgBlP7 kx4A== 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=VW9hDvdQvmrywMGmm3H1XxeS69NxAB0tGZp/9RrK+jk=; b=TG2LvA5Ow9XicZW7nRNC7ZLkO+bknPpLYm13JBv39CqGFLgspKZAs3oKlHdISOdHU7 n/FvHiLlOawl0z2xJ+Mm7uLI1d4apfMD6ipcSrs9urJqKxKe1Ce9zFzYk396gG/ndu7o oTkkQ+o0f7S5FV2dAaQQdaadmnhixIIAG6Do8r3PRs7AXnhGS3QffHiFTeF3R3KfiLF2 aRpcGWt/5RJaV969jRGRNRwpFZtyTyZuoxMF+S5+iy1y5/nKFcfZUJaufVEG5AcgXtX0 QCkg/M8bikQHrpB4TAu4Rqy3I102xIafKRXrZh9FWPKtfX+vG6sKuDRHLBNPPpZY86mZ vcAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=OEhgih4n; 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=REJECT sp=REJECT 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 m17-20020a056402511100b0048ea96d245asi9990427edd.267.2023.01.09.05.23.44; Mon, 09 Jan 2023 05:23:57 -0800 (PST) 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=OEhgih4n; 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237211AbjAINDm (ORCPT + 54 others); Mon, 9 Jan 2023 08:03:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236277AbjAINCk (ORCPT ); Mon, 9 Jan 2023 08:02:40 -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 258E665DF for ; Mon, 9 Jan 2023 05:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673269251; cv=none; d=zohomail.in; s=zohoarc; b=HIZNpFaRby+fsH6otLBTzTEYlf/gQ95A4d+oT8qzYP7KRT21a584WQWxFHq7uQbOpXAN1bH7jwB/cTj2/loUKcylkLY78nGpFnwcSOCgw1lRHi7bMYNdx5vR2cBcNV8QhVFY1gjy83fF/o9LWqyACjuIi6s43+4KaMvtT12knFs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1673269251; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=VW9hDvdQvmrywMGmm3H1XxeS69NxAB0tGZp/9RrK+jk=; b=I1UnQtB8NsF+Ay4I9b6giFuS8UwH0HbtbbI7UAv+YIBNxIQNjcSQlTycBj1U+w4eUur5kPClSN3lDforXOS6nbKViB0rxGh4khbif9mIZgy9iufWm+ePO1Wj0zxD4gdMD/N1Yo6GXBVcmX2GO18SeCj/wjYGqLHsF5hpJXKmesg= 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=1673269251; 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=VW9hDvdQvmrywMGmm3H1XxeS69NxAB0tGZp/9RrK+jk=; b=OEhgih4nfiXvQHy6ceiheH9GJLPEjAHWCxVA3SVg17CM4Eco0I/GLO3p9ySUlIT+ b+Rc5YZd+4zhlJA07ZNyqElESpowwh6zGK+uNLImAvWvmBuGDW99Gbkpty4trcWIwYF UnNb9iFhCdDZ3pasC6bZyM1PY3eRrPlwwFG7hB90= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1673269249955170.35731119456818; Mon, 9 Jan 2023 18:30:49 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Simon Ser , Jim Cromie , Sam Ravnborg Cc: dri-devel , linux-kernel Message-ID: <440e935f187d3b373c400ced86a455712dc9f4b9.1673269059.git.code@siddh.me> Subject: [PATCH v6 02/10] drm: Remove usage of deprecated DRM_INFO Date: Mon, 9 Jan 2023 18:30:27 +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 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 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 8d92777e57dd..6e962ad565db 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 11748dd513c3..dfb73c9d7930 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -901,7 +901,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.0