From patchwork Sun Feb 26 07:21:50 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: 61582 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1836830wrd; Sat, 25 Feb 2023 23:25:17 -0800 (PST) X-Google-Smtp-Source: AK7set+9J7b1qQ06aze/wp9tFwEJtBeCsopH64bZOTElRe9shqVj5spnbzjYcomYmQhbuxQtsV5j X-Received: by 2002:a17:906:493:b0:8b1:7e88:c20e with SMTP id f19-20020a170906049300b008b17e88c20emr30058946eja.41.1677396317263; Sat, 25 Feb 2023 23:25:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677396317; cv=pass; d=google.com; s=arc-20160816; b=HYOf+vkOKj7DwLVjnzDtEfgW8xZLsK6nzkO8V8xL501B3NVG3V2qsSMaM3CH42m1Tb jpGbS1jhVfzVr9wKp6kNpoWdO5+ZVdKdp3lB/8x41aoeFUd9hKyoyn7mtwUUZxY7qzOs Ba9rp90q79jTnWzDJxz8CEg7YOjBn0crJbZRk/5LksY/mey+HBn10AScbcD2NwAx2RWU /bp1TIfAHyLbGHHnHul3MIlPkxdJYgN6QAu3rqYrNWpqFqIHFMYhqiDUtkzwrQVQYbMS Gidc2ZG5xiP9RXqPm1LAnJHKvERobgfsM6gQ3ZrI0Y1LKCmLZCVL5+pLNjPcZLbhmkuZ /YQw== 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=8G/F/eygNJ3r9G90eWZBfkKRI/vHqXgYNYardtRrrwk=; b=JP58/JVY/MZEXiQEQcKzn7M2yQ7JtZlavxSUUy0c3RhRshXgl+U5GhMRr7okF1Tgzy rC9cq51OnxDAh218HZxR/sqFvTfvk1Pyy0/dFMVdCoehCtxX9Yttp7B7gwot6bUBZ56/ aDbgjTwYMwg+8PUTsOpPd8We3/FjrOUNJqMcHUsKz95KkNTmWxqomzR1Vs/HJkr7QWji HtwGJYPJzQ4Ob/8VcCNCUloIZE7tVIB8F+Cd4Q0o2sgKkjKnN3Gp2x9c8wKK9GlHyEkL LbhU/9SZ2n7M+b0mU6FoIulDD8hL1R6fCiiPE8F+55gIxwpVKCIOWzf9UDEvl8SgeW1j l5KA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=LCZPCXDv; 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 sg35-20020a170907a42300b008d581b1aafesi5732128ejc.784.2023.02.25.23.24.53; Sat, 25 Feb 2023 23:25:17 -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=LCZPCXDv; 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 S229629AbjBZHWy (ORCPT + 99 others); Sun, 26 Feb 2023 02:22:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjBZHWt (ORCPT ); Sun, 26 Feb 2023 02:22:49 -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 2C77911E86 for ; Sat, 25 Feb 2023 23:22:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677396130; cv=none; d=zohomail.in; s=zohoarc; b=KxddhieU05Ln4k1acieltQY7v0EoaLjC60fmQKJEmH3vOg2rDE98vLCdFsxajRFzRrgQARJGG0AyAbEjBk1dq6e0FQ6NV9lMYyAxhAgBP2Fc2hgLWiIZrvsQ9rRaRG4Thh4/gnXA0PEkoMAERiTT9TDMtzRhnQYNWrIcTcZMmcs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1677396130; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=8G/F/eygNJ3r9G90eWZBfkKRI/vHqXgYNYardtRrrwk=; b=NIPJMHX52JXzcej7jDIbJ7xo+IByYy/I+VqquURN2YMANf3chidykb3PxuJSNWcZQMAHUiBrPhDl3mS1WhjYUOSUqSGJ6UjE5FCuuUuowBaEXQpWgcC9AQFSssAMsyND416MkcQxsEDgeII4QExaZB9PFe1fUDVgIY/oIwXV5Hc= 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=1677396130; 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=8G/F/eygNJ3r9G90eWZBfkKRI/vHqXgYNYardtRrrwk=; b=LCZPCXDv4ycYlMgR8K8wtZdCgx7hbLG1+ug7V9FXnb3im7D5sQRZdo6YXilFh80z 9zsKwmJLqYhenz21JnA3bm+CjRuHVlvFjqOiLZ4Txhvwa44VWwOpqA9NKEYEiKx6RvC fdp4mgiofe6YoFgnYNia0w73NX+poOkA/xshRbHY= Received: from kampyooter.. (122.170.64.102 [122.170.64.102]) by mx.zoho.in with SMTPS id 1677396128649235.6112975918394; Sun, 26 Feb 2023 12:52:08 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jim Cromie , Sam Ravnborg Cc: linux-kernel , dri-devel Message-ID: <496db3221937d0955e1771016f24489872737ffb.1677395403.git.code@siddh.me> Subject: [PATCH v7 3/7] drm: Remove usage of deprecated DRM_NOTE Date: Sun, 26 Feb 2023 12:51:50 +0530 X-Mailer: git-send-email 2.39.1 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 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?1758877520918719338?= X-GMAIL-MSGID: =?utf-8?q?1758877520918719338?= drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- 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 38ea8203df45..67fed6cee9e9 100644 --- a/drivers/gpu/drm/drm_displayid.c +++ b/drivers/gpu/drm/drm_displayid.c @@ -26,7 +26,7 @@ static int 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 -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); }