Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2222679rwl; Mon, 26 Dec 2022 10:48:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXt1jbpBzS+nAcsMIDy5Ngff2zgqryhOwLL1Jp7nbStRDgCzq5Dqr3UiukvthDjp5RdAr5qh X-Received: by 2002:a17:902:aa85:b0:189:894c:6b48 with SMTP id d5-20020a170902aa8500b00189894c6b48mr21434618plr.59.1672080514973; Mon, 26 Dec 2022 10:48:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672080514; cv=pass; d=google.com; s=arc-20160816; b=1JFyPP1KNUbQeKcIC0yv9lWFEqcli+XfdQVHAQGgPNpk87bMKK26gBFT2CaBAIMHhO 1rraosO8lOxJErVjalU9l4nN2h09CXdSmtiTiAjtxpDeq9cUeDhSsaDHVCA6Spct+bjp wuYJ3XfEzT1xcjV40W8BTSOTGES+fYtOJRsAhwUBomThYIHs9juHpSfp/oeb37WfsWWr QeIxUnUVgZ3+tSRdAKM7160UYSxn38Ioji1QY2/N0zTDGkZmF0MD4eosy/XEQXOKxpy9 XrEwNzY/cWiSnEp8jhpsZpMUIjTHxl6KHd89910hWHQQ8TK9bylzvNUakf/JW91lbXSY 4HeA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a170902d48b00b0017e8aa47020si12790517plg.472.2022.12.26.10.48.26; Mon, 26 Dec 2022 10:48:34 -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 + 66 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 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 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 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 change= s. - 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(-) --=20 2.35.1