From patchwork Tue Jun 6 10:45:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddh Raman Pant X-Patchwork-Id: 103723 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3304099vqr; Tue, 6 Jun 2023 04:01:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Jeo0gPOKae3bmVpH7ldEb/dApJIPw8cYeLSD5iVyckM9JhtLvfBby3Dvnc3QG8EwHJsiO X-Received: by 2002:a05:620a:4386:b0:75e:c23f:82ee with SMTP id a6-20020a05620a438600b0075ec23f82eemr1441340qkp.64.1686049285237; Tue, 06 Jun 2023 04:01:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686049285; cv=pass; d=google.com; s=arc-20160816; b=WqJkHgCZFzWL+fYYMmscvWxiAJOmlwTB1TmejgcS09iwYizElOgr1HvU4kuXHkbM+m CkDXid+05EFLiOGQCcZ6MnXUcqQHhPzTJiLGshst5Hy+WBA1OVwOWectVDJgurmE8WzH Z4+8lVUMGrjWa3OvCGcHeshcTvgd3c4mXUp/edQnGGNk7FDYPDtFJrSBpKLhBxl8Tiuq UpoL8lrUvSlSC4WPaIJ8RxcS7mGRMrpBBEpO3Wz1/IPcf9+3hA8ytP5q1pFlZ0nR/n6z 5IGXTkpT5mDtsubD0m3ksUU29LCw4JtmYXyhJpZBDoLOvVQwwZuh3j/3dkHiUQbOPDc+ dyKg== 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=X1XmEjnuMD7kUMREXmhXScMMEN4lpmi4dWENGuju2YUQZOSmUQEYQ6qTtQ9lSIUQnD 3cgtNQbasU79PAuATV+gNKgHaowBtOiUgpLdnzVb9AW8XCoavaiv8iGLL+t2sIwkgyV5 +iRa2U+SQ1hPzYUI4W4Ig9RbhisIvZr/rpL14tysa3dmqHz/0jOcGJD8uxgQgAd+/dSg KzxjKv0MKi1NHlW1rEMU28/Eu06J9yF21qWhTcEYqQade01b9baDAzgduP2Q8vq7azL4 wdimyzao5Sm0ihVZOqywbRM5MMKmsmaj01fCrRRFhaesDQn06fcN4xpuAFNy056ATLn2 jM5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=CZp3KUS9; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h18-20020a05620a10b200b0075d005b5477si5753377qkk.694.2023.06.06.04.01.10; Tue, 06 Jun 2023 04:01:25 -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=CZp3KUS9; 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 S237355AbjFFKs0 (ORCPT + 99 others); Tue, 6 Jun 2023 06:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233155AbjFFKrd (ORCPT ); Tue, 6 Jun 2023 06:47:33 -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 9C9ACE6A for ; Tue, 6 Jun 2023 03:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686048331; cv=none; d=zohomail.in; s=zohoarc; b=MP7BVhRDC1ZA9ah3I5kt7rHSjxb2jT/4BtXSxGvbn3ty/YoRuKNYhKxZ2ETDukaNB3Z2SkvbYEZJpAnAipfDjB8hSm4yYFYLUtQHo0lPdoa7zJlkUfk68sTjL/BvLiXkzBaAhb6rQPHNmY3Spy4IY3GdnHKLLeVrXxHIkJ+PZ+s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1686048331; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cl03iPbszoY1ulXeWyy4kFcOXDGykKuT85fVuI02SQ4=; b=BPw3BzB9iN26ZDc7cjRzHfAHk6ewg2ySb9aeXXzbzUuPZcrfZOsV7ieiecDUzeAeYAHJmgOQk5W4Us1rQmW5+gBskHTkLyaOwuObHP/ayVa6ehDd54Q6MzJIMvKPLyq1p4GVIIX7cQ21BE16hmbEmWHgHsrBxDC6nRld97fo+i4= 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=1686048331; 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=CZp3KUS925FUGwfUr+PV1XSs5ro21ZWi4/q5jgH1za8Ehd7DkqKiY1aMGy6vTauS N8xxI4bK3KfHbvC37DI/pKcDxeK4nJnnHMyiXCnxbf00a3NGsybyjR7UqSQbtACeNhc 8GIDwiW4mf7ydHZ9Lg0ta72D9yWy8gX90FH0lFZ0= Received: from kampyooter.. (122.176.141.156 [122.176.141.156]) by mx.zoho.in with SMTPS id 1686048329572838.5399340664231; Tue, 6 Jun 2023 16:15:29 +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 Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Suraj Upadhyay Message-ID: <52c8eb0f241a9d67ce5b7e6fc64dc397e735ccd8.1686047727.git.code@siddh.me> Subject: [PATCH v9 3/8] drm: Remove usage of deprecated DRM_INFO Date: Tue, 6 Jun 2023 16:15:17 +0530 X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 X-ZohoMailClient: External 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767950815714492799?= X-GMAIL-MSGID: =?utf-8?q?1767950815714492799?= 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_client_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, DRM_DEBUG_KMS("can clone using 1024x768\n"); return true; } - DRM_INFO("kms: can't enable cloning when we probably wanted to.\n"); + drm_info(dev, "kms: can't enable cloning when we probably wanted to.\n"); return false; } diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.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) return; if (mode->force) { - DRM_INFO("forcing %s connector %s\n", connector->name, - drm_get_connector_force_name(mode->force)); + drm_info(connector->dev, "forcing %s connector %s\n", + connector->name, drm_get_connector_force_name(mode->force)); connector->force = mode->force; } if (mode->panel_orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) { - DRM_INFO("cmdline forces connector %s panel_orientation to %d\n", + drm_info(connector->dev, + "cmdline forces connector %s panel_orientation to %d\n", connector->name, mode->panel_orientation); drm_connector_set_panel_orientation(connector, 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 long flags) if (drm_core_check_feature(dev, DRIVER_MODESET)) drm_modeset_register_all(dev); - DRM_INFO("Initialized %s %d.%d.%d %s for %s on minor %d\n", + drm_info(dev, "Initialized %s %d.%d.%d %s for %s on minor %d\n", driver->name, driver->major, driver->minor, driver->patchlevel, driver->date, 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 *driver, } mutex_unlock(&legacy_dev_list_lock); } - DRM_INFO("Module unloaded\n"); + drm_info(NULL, "Module unloaded\n"); } EXPORT_SYMBOL(drm_legacy_pci_exit);