From patchwork Mon Dec 26 18:27:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddh Raman Pant X-Patchwork-Id: 3315 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1043864wrt; Mon, 26 Dec 2022 10:38:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXvn4Sq5zrzZvhiHLLB9cCBSV/4ujdukk/3mfyDgEqqXEx7H75Bly3Wwed0ZooSyMfBB7Nt8 X-Received: by 2002:a05:6a20:1e50:b0:b0:57d4:c026 with SMTP id cy16-20020a056a201e5000b000b057d4c026mr20925500pzb.21.1672079931530; Mon, 26 Dec 2022 10:38:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672079931; cv=pass; d=google.com; s=arc-20160816; b=gyTb4PJavbbgNJNwHPgFNfSPFX/AnHmOnYrF6B6n/ymscqhd1hIqBIwIbSWMNWrels cvd4r8LoxfLEzorcybQdGuJ1NVmEEn5cEmJ/x16XTBwK/FCD6HKgVS4272X0ZpkEvu94 EeeFTTOEN2GmCitsSF+1Wz5Bp+6BcOZCpsHYw+rrfcudMlylltjweCVM4y+tTK51kKz4 xcxTrTffipctRyOEUehZzpCt9mzdfsMuklTKpO3WnbF5Nmcxlz7/sho3V1sL7zrtIfVv VW+kJK/FIExLQ2GGnwb9HoCLsTfHQr3WhYl9ehTBlsXskYKhRrD04wiSZQS4RJp7kLfF 5l4A== 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:date :subject:message-id:cc:to:from:dkim-signature; bh=q/mG3jwl7R4iGvK6jkz4z/JFsV5/iqv31VbL7HAnCZ4=; b=NlCJJocHqRJToyP90kKMtZ/VgKUQPA2Wp6IcptXNQJTuXpJj4NxPO5Z88Ef7bHZ5ul Gd8FFOCAImtcNeEgVQUWviOOiiJ1TDCVVIn2G/+tY8RkVzazFAyYxRJGL4GRgRTquvhB zOnN4Uemaj8jihBe+DCKgA+Ro4gg8gGGAyGOfzMs5jCGr4/2S6b2Rnmryh8VyfGUUCq4 MM03B17Ik5CdzHAAY/gYFg2ReY+Wt5LxIYeoCMLT55y9OZGDA1aamDxHUd9dNRSV6q2Z VVS31GKKppuTxWqpHJHq6jmgXSWucVO0qAjNQrEV+7r5LdHJLm7ctGjQAfJTq9FHTG/2 xB1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=PUa6sNFu; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a056a000b4300b00562331a3562si12681864pfo.130.2022.12.26.10.38.38; Mon, 26 Dec 2022 10:38:51 -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=PUa6sNFu; 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 S232289AbiLZS2M (ORCPT + 99 others); Mon, 26 Dec 2022 13:28:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231124AbiLZS2C (ORCPT ); Mon, 26 Dec 2022 13:28:02 -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 705E82616 for ; Mon, 26 Dec 2022 10:28:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672079247; cv=none; d=zohomail.in; s=zohoarc; b=T4zgpSfZc+/VBFtGSYx5HyvXwtTw5zCEStYx0EwPza9+yUJTI8pLHdYeuR5vnCLSHo42WbmxR8s6/Ze2CzRAHhlTn8+shQdOyRdVk+/rstjv+5/ZQHR7ZSZyGu+AQlJk6T9+EGg0GpmjCfVkL+VPIdv3aV0RBonnE1sRn07PGCk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1672079247; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=q/mG3jwl7R4iGvK6jkz4z/JFsV5/iqv31VbL7HAnCZ4=; b=DIqx8KukaUEDyLkyXUSFF9KQ3rLpOHqBwfaNaitGp+eQC/ZebCOzqgESjZ+5s+8Ogy2jFwxJTwwX7ZZEEby8Q+nu01RqQ0BSuPfzRe594np8ZOlxIUYTiQC8dOxSgEgw5TWXR4lJ3djepjY9CkAaA8yquJ2xJg/b7Qv49anChnw= 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=1672079247; s=zmail; d=siddh.me; i=code@siddh.me; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=q/mG3jwl7R4iGvK6jkz4z/JFsV5/iqv31VbL7HAnCZ4=; b=PUa6sNFu2Dk9rKeyCjdQA3ocED1Fg7V47RS0K5wPjWW1EPiaLC3dIXHJ2vyzAAxp ds6p7zh+48xEQAXmcSg8uB8ZANy0WXbEX4/v3qQvOFwioA3ae+GexlqbbAvuLF2XIPj Ti9E07uotqhHmEG8jNHZVv4z7+237tYt7Uxq9VWo= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1672079246242825.1574247688241; Mon, 26 Dec 2022 23:57:26 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Simon Ser , Jim Cromie Cc: dri-devel , linux-kernel Message-ID: Subject: [PATCH v3 00/10] drm: Remove usage of deprecated DRM_* macros Date: Mon, 26 Dec 2022 23:57:12 +0530 X-Mailer: git-send-email 2.35.1 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?1752929692606429255?= X-GMAIL-MSGID: =?utf-8?q?1753302886463419990?= This patchset aims to remove usages of deprecated DRM_* macros from the files residing in drivers/gpu/drm root. In process, I found out that NULL as first argument of drm_dbg_* wasn't working, but it was listed as the alternative in deprecation comment, so I fixed that before removing usages of DRM_DEBUG_* macros. Courtesy discussion on v1, I added support for NULL in drm_()* macros too in this v3. This patchset should be applied in order as changes might be dependent. Please review and let me know if any errors are there, and hopefully this gets accepted. --- Changes in v3: - Added support for NULL is __drm_printk and thus by extension to drm_()*. - Thus, converted dropped pr_()* changes to drm_*(NULL, ...). - Rebased to drm-misc-next and resulting appropriate changes. Changes in v2: - Removed conversions to pr_*() in DRM_INFO, DRM_NOTE, and DRM_ERROR changes. - Due to above, DRM_NOTE usage cannot be removed and the patch is dropped. - DRY: NULL support is now achieved by way of a separate function. Siddh Raman Pant (10): drm/print: Fix and add support for NULL as first argument in drm_* macros drm: Remove usage of deprecated DRM_INFO drm: Remove usage of deprecated DRM_NOTE drm: Remove usage of deprecated DRM_ERROR drm: Remove usage of deprecated DRM_DEBUG drm: Remove usage of deprecated DRM_DEBUG_DRIVER drm: Remove usage of deprecated DRM_DEBUG_KMS drm: Remove usage of deprecated DRM_DEBUG_PRIME drm/drm_blend: Remove usage of deprecated DRM_DEBUG_ATOMIC drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_blend.c | 13 ++- drivers/gpu/drm/drm_bridge.c | 8 +- drivers/gpu/drm/drm_bufs.c | 122 ++++++++++++------------ drivers/gpu/drm/drm_client_modeset.c | 118 +++++++++++++---------- drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c | 28 +++--- drivers/gpu/drm/drm_context.c | 18 ++-- drivers/gpu/drm/drm_crtc.c | 36 ++++--- drivers/gpu/drm/drm_crtc_helper.c | 62 ++++++------ drivers/gpu/drm/drm_debugfs_crc.c | 8 +- drivers/gpu/drm/drm_displayid.c | 6 +- drivers/gpu/drm/drm_dma.c | 10 +- drivers/gpu/drm/drm_drv.c | 26 ++--- drivers/gpu/drm/drm_edid.c | 17 ++-- drivers/gpu/drm/drm_file.c | 18 ++-- drivers/gpu/drm/drm_flip_work.c | 2 +- drivers/gpu/drm/drm_framebuffer.c | 3 +- drivers/gpu/drm/drm_gem.c | 7 +- drivers/gpu/drm/drm_gem_dma_helper.c | 6 +- drivers/gpu/drm/drm_gem_shmem_helper.c | 6 +- drivers/gpu/drm/drm_hashtab.c | 10 +- drivers/gpu/drm/drm_ioc32.c | 13 +-- drivers/gpu/drm/drm_ioctl.c | 24 ++--- drivers/gpu/drm/drm_irq.c | 4 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- drivers/gpu/drm/drm_lease.c | 68 ++++++------- drivers/gpu/drm/drm_legacy_misc.c | 4 +- drivers/gpu/drm/drm_lock.c | 36 +++---- drivers/gpu/drm/drm_mipi_dbi.c | 19 ++-- drivers/gpu/drm/drm_mipi_dsi.c | 12 +-- drivers/gpu/drm/drm_mm.c | 8 +- drivers/gpu/drm/drm_mode_config.c | 2 +- drivers/gpu/drm/drm_mode_object.c | 6 +- drivers/gpu/drm/drm_modes.c | 36 +++---- drivers/gpu/drm/drm_modeset_helper.c | 2 +- drivers/gpu/drm/drm_pci.c | 14 +-- drivers/gpu/drm/drm_plane.c | 46 ++++----- drivers/gpu/drm/drm_probe_helper.c | 39 ++++---- drivers/gpu/drm/drm_rect.c | 4 +- drivers/gpu/drm/drm_scatter.c | 19 ++-- drivers/gpu/drm/drm_syncobj.c | 2 +- drivers/gpu/drm/drm_sysfs.c | 22 ++--- drivers/gpu/drm/drm_vm.c | 45 +++++---- include/drm/drm_print.h | 97 +++++++++++++------ 45 files changed, 565 insertions(+), 491 deletions(-)