Message ID | 91d957dd92b41dda42da912397df195e3565866a.1686047727.git.code@siddh.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3303923vqr; Tue, 6 Jun 2023 04:01:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NLjahKVCKBWvXTio7p509tecnbXkqksHth1jOOyE6PrSX/68Y4kBHKgVgpIJC0GQ9ehZw X-Received: by 2002:ad4:5945:0:b0:625:7c0b:4640 with SMTP id eo5-20020ad45945000000b006257c0b4640mr1818384qvb.22.1686049274781; Tue, 06 Jun 2023 04:01:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686049274; cv=pass; d=google.com; s=arc-20160816; b=iNpgW4PNWDVLjwez9e6/RKxNBHkhr74ty5lYxYKLJGodZCV8QxU0m4k18Uy4KU/b4H 79pD5bi9XWLR5xJZW8/jMgH9G/93IFEQcg2rUDwoifMC9QgMN+e8JSl3Wt/cklwYEX97 pDgIjHqVm2Prc4C2VPbz96nyJcHij5j8Q6sZzVevIMZP/ySqgT4Yanf4d4bpwkcXmwo+ Et33ilzsB2y8nsUnQVX/jFLte0HJreTxWdz6iCoH2eWfI0YV7b7WzKmhB0o3/qVu/Nnx p+ys5n7QlKsATS6CD1XoU2g070JCw7XZjIy4TbvTCo3EuYqL9DbsZXJBhgL6y7ADSnh8 aKrQ== 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=oaRDWrHa9OwMd9tMZjDMhVHgfoU1wFJjeKV6s1bIgBA=; b=QLNnnV00UuJAr0hOSCGETs7xyU4RCiyWxqraaBIU34iWG8XqrnIlj2Iyu6SYqPYAtr tdjlYltf/TaDovTdT+IO2RcafWwW6ki/L8ksjudZAq53x0K2ZjnwCAd7iIUpgCYyYu5t uHkasHkBF0Pp2i6SAmsoVA9lwF563Jur/yNv/ANOdpqOYQhUhbt0+KlyYMlEwOVXsfPZ bBSbJS9Y4krNGBOnWEOVhd9hNN76gOc+WHKaD6JcSMlNNhv0J/jONk8DrXyEvg6nIPgr DdV0oSQv1+yPuo8HmHZQEhAmlFEkhlipIeg5UJk3RDjZIoYvaVp5mLfLjenHeqRxyXM7 mVSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=at6SXXhs; 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 e20-20020ac84e54000000b003f9a6395ee7si2352637qtw.243.2023.06.06.04.00.59; Tue, 06 Jun 2023 04:01:14 -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=at6SXXhs; 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 S237133AbjFFKsN (ORCPT <rfc822;xxoosimple@gmail.com> + 99 others); Tue, 6 Jun 2023 06:48:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233093AbjFFKrc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 6 Jun 2023 06:47:32 -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 A6BAEE42 for <linux-kernel@vger.kernel.org>; Tue, 6 Jun 2023 03:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686048331; cv=none; d=zohomail.in; s=zohoarc; b=UvubI0ufLdq+aLsLCgpiNRcI1SL6UnVyfZOBemO56MTqS32QSUlYqzaYu8rHCJKG1kwxwL8ztdDGZCGm1TCZCHs4GUc+dB6gHA2JlOmydJr/JrDiddIASc6OHfOz/k5H82v2TMK3V6OYkfjKe8Lot1tMWW/h0UtNK4e+vQFlYR8= 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=oaRDWrHa9OwMd9tMZjDMhVHgfoU1wFJjeKV6s1bIgBA=; b=PmAuNgAbivHQippfZ9q5173Rdgd0sWgjx1d846eSogThkjpdyeNggxxMlUVLwf6UG/yDf5WRQvYBamacZq/rcWs5E7HTVMitwM0SzE2vC2R5il1imitl/Jk1hsTNgPjYK80CdjxHPq1OE9bDtR203USQMaiVQqcnt8e2uRIbLZk= 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=<code@siddh.me> 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=oaRDWrHa9OwMd9tMZjDMhVHgfoU1wFJjeKV6s1bIgBA=; b=at6SXXhsguFokWjd741ICj90PKaQZw8HVk17W6QRId8iJA6YMT1qkphbM1up+8uz Kwo0CtXRTsfRkXFLshM+Iv0aCFzUGxOWDN1L0f42/fzy72u/wIA4NBiT9XHdGKj5tSU IgggfwwwkOv9pSJ8oVcCOKTGoUf5dUJRuiRIBvx8= Received: from kampyooter.. (122.176.141.156 [122.176.141.156]) by mx.zoho.in with SMTPS id 1686048330047115.23647061214422; Tue, 6 Jun 2023 16:15:30 +0530 (IST) From: Siddh Raman Pant <code@siddh.me> To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <neil.armstrong@linaro.org>, Robert Foss <rfoss@kernel.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Jonas Karlman <jonas@kwiboo.se>, Jernej Skrabec <jernej.skrabec@gmail.com>, Jani Nikula <jani.nikula@linux.intel.com> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Suraj Upadhyay <usuraj35@gmail.com> Message-ID: <91d957dd92b41dda42da912397df195e3565866a.1686047727.git.code@siddh.me> Subject: [PATCH v9 4/8] drm: Remove usage of deprecated DRM_NOTE Date: Tue, 6 Jun 2023 16:15:18 +0530 X-Mailer: git-send-email 2.39.2 In-Reply-To: <cover.1686047727.git.code@siddh.me> References: <cover.1686047727.git.code@siddh.me> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767950803957289663?= X-GMAIL-MSGID: =?utf-8?q?1767950803957289663?= |
Series |
drm: Remove usage of deprecated DRM_* macros
|
|
Commit Message
Siddh Raman Pant
June 6, 2023, 10:45 a.m. UTC
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice().
Signed-off-by: Siddh Raman Pant <code@siddh.me>
---
drivers/gpu/drm/drm_displayid.c | 2 +-
drivers/gpu/drm/drm_kms_helper_common.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Comments
Hi Siddh, Thank you for the patch. On Tue, Jun 06, 2023 at 04:15:18PM +0530, Siddh Raman Pant wrote: > drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). > > Signed-off-by: Siddh Raman Pant <code@siddh.me> With the commit message fixed as mentioned in the review of an earlier patch in this series, Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> > --- > drivers/gpu/drm/drm_displayid.c | 2 +- > drivers/gpu/drm/drm_kms_helper_common.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/drm_displayid.c b/drivers/gpu/drm/drm_displayid.c > index 9edc111be7ee..27ffeee09e4f 100644 > --- a/drivers/gpu/drm/drm_displayid.c > +++ b/drivers/gpu/drm/drm_displayid.c > @@ -42,7 +42,7 @@ validate_displayid(const u8 *displayid, int length, int idx) > for (i = 0; i < dispid_length; i++) > csum += displayid[idx + i]; > if (csum) { > - DRM_NOTE("DisplayID checksum invalid, remainder is %d\n", csum); > + drm_notice(NULL, "DisplayID checksum invalid, remainder is %d\n", csum); > return ERR_PTR(-EINVAL); > } > > diff --git a/drivers/gpu/drm/drm_kms_helper_common.c b/drivers/gpu/drm/drm_kms_helper_common.c > index 0bf0fc1abf54..7a41373b67dc 100644 > --- a/drivers/gpu/drm/drm_kms_helper_common.c > +++ b/drivers/gpu/drm/drm_kms_helper_common.c > @@ -41,7 +41,7 @@ MODULE_LICENSE("GPL and additional rights"); > /* Backward compatibility for drm_kms_helper.edid_firmware */ > static int edid_firmware_set(const char *val, const struct kernel_param *kp) > { > - DRM_NOTE("drm_kms_helper.edid_firmware is deprecated, please use drm.edid_firmware instead.\n"); > + drm_notice(NULL, "drm_kms_helper.edid_firmware is deprecated, please use drm.edid_firmware instead.\n"); > > return __drm_set_edid_firmware_path(val); > }
diff --git a/drivers/gpu/drm/drm_displayid.c b/drivers/gpu/drm/drm_displayid.c index 9edc111be7ee..27ffeee09e4f 100644 --- a/drivers/gpu/drm/drm_displayid.c +++ b/drivers/gpu/drm/drm_displayid.c @@ -42,7 +42,7 @@ validate_displayid(const u8 *displayid, int length, int idx) for (i = 0; i < dispid_length; i++) csum += displayid[idx + i]; if (csum) { - DRM_NOTE("DisplayID checksum invalid, remainder is %d\n", csum); + drm_notice(NULL, "DisplayID checksum invalid, remainder is %d\n", csum); return ERR_PTR(-EINVAL); } diff --git a/drivers/gpu/drm/drm_kms_helper_common.c b/drivers/gpu/drm/drm_kms_helper_common.c index 0bf0fc1abf54..7a41373b67dc 100644 --- a/drivers/gpu/drm/drm_kms_helper_common.c +++ b/drivers/gpu/drm/drm_kms_helper_common.c @@ -41,7 +41,7 @@ MODULE_LICENSE("GPL and additional rights"); /* Backward compatibility for drm_kms_helper.edid_firmware */ static int edid_firmware_set(const char *val, const struct kernel_param *kp) { - DRM_NOTE("drm_kms_helper.edid_firmware is deprecated, please use drm.edid_firmware instead.\n"); + drm_notice(NULL, "drm_kms_helper.edid_firmware is deprecated, please use drm.edid_firmware instead.\n"); return __drm_set_edid_firmware_path(val); }