Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7200877rwd; Tue, 6 Jun 2023 07:38:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6BsAbtBTK7c0Sm5afJQ0xn06wtbn6pHAeus42xvr1Q79t4GFlCSywQdYSX909WMsiBQVSl X-Received: by 2002:ae9:e889:0:b0:75e:c5bf:d3e7 with SMTP id a131-20020ae9e889000000b0075ec5bfd3e7mr2460827qkg.5.1686062283967; Tue, 06 Jun 2023 07:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686062283; cv=none; d=google.com; s=arc-20160816; b=L15qlqsZimqQo+nqY48Pn1vlxHqNhTnyBEV84Jco86ASV9j9l6JSJpQSmkr9oyxS/E FekTIdYa0rxAD2FtRk64toqw1azXeZPdLe1naDeAlqP662kFX6F73RS+KrnyX0YoiPqQ kXeYWAxyZR95yOBWbyzSbL3Ta8J+gsN/vw6MgKANaCox7WiH8/VowFJt6oFGV1sKjBKQ lotiCtyx6cmvdsz0VaEMbZ/7AhTt2IkaepmDahaN4v/SYbgjMTJZXTemqcd7r87boTpu MFc+sjCuKj68YJWiDQbnivuvzROk+9u3vfyl9ee/mrg1GzpUwNuAs5/czgyVbVZVLHoj BdAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MeYZyF+5rjsiOAO45plkWopNwo46Ztlp5lecSL+W+nM=; b=cPqLKKxyrJZN7B9/b0PFt+4zIZLG7UyN9/Y9WQN98dlKrStyKCtUTbuXe/qka5oLhv zPdlg2G0VZbzS7t1dZJBGvbaUQ7/5kqrldeMtEPDlA+WA6H12n5+jKMlUoUpHXEwBJ2l de3fU+vBTkQhZNjT0Y2ckqsjadCVOUv8vbRHJunBx2qoAKxfyi+ZmRkWvtxHWIerXjkD bWBE2xV2za+kHYzBbGGc7ZA8TDIRm4Fv8iXOt+YubovZqC0Jr723EH4QjeXr9fmSHrMg 0+woJU2onx9ZpujC6T+d5Jzh1wfGXFyPF2rm1yhk1tfa5daG++iOJ/YD6wjAlSY8/vH9 YdZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=LdzSXeOc; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g24-20020a37e218000000b007577edeeefcsi6113960qki.576.2023.06.06.07.37.46; Tue, 06 Jun 2023 07:38:03 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=LdzSXeOc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235266AbjFFOXb (ORCPT + 99 others); Tue, 6 Jun 2023 10:23:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231935AbjFFOX3 (ORCPT ); Tue, 6 Jun 2023 10:23:29 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1A2C12D for ; Tue, 6 Jun 2023 07:23:28 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126253223039.31.openmobile.ne.jp [126.253.223.39]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9D474AB; Tue, 6 Jun 2023 16:23:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686061381; bh=YbDeXSKvlYrPDuVjoEXfSOcgxqvkuTEKb+shnMCLRcQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LdzSXeOcf/AwXD3bdRm2zumc5KLQd9EWT0jRnwyCUy04sFkOi7izmLbgzZRwUt5gO SquS0ij0b03+U5J7Aa3fgSTzkx8oXd1sgW94d6QjhelnhOR1RyZ6NXHoLx7A1g1ppv IrvK0TGKCrl38eEzmpEZuZTddd47u4ZHOlVOPWog= Date: Tue, 6 Jun 2023 17:23:22 +0300 From: Laurent Pinchart To: Siddh Raman Pant Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Jani Nikula , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Suraj Upadhyay Subject: Re: [PATCH v9 3/8] drm: Remove usage of deprecated DRM_INFO Message-ID: <20230606142322.GB5197@pendragon.ideasonboard.com> References: <52c8eb0f241a9d67ce5b7e6fc64dc397e735ccd8.1686047727.git.code@siddh.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <52c8eb0f241a9d67ce5b7e6fc64dc397e735ccd8.1686047727.git.code@siddh.me> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Hi Siddh, Thank you for the patch. On Tue, Jun 06, 2023 at 04:15:17PM +0530, Siddh Raman Pant wrote: > 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 +- Any plan to remove it from drivers as well ? If not you should mention in the commit message (probably in the subject line itself) that you're only addressing the DRM core. Same comment for further patches in this series. > 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); > -- Regards, Laurent Pinchart