Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7470427rwd; Tue, 6 Jun 2023 11:08:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5w3Lr7eIArgficCnaJUjQREqST7mbw9yP/4NwT3mOlWLqU5vxF8DtujD+nJj7q/e4aV7oT X-Received: by 2002:a17:902:d509:b0:1b0:663e:4b10 with SMTP id b9-20020a170902d50900b001b0663e4b10mr3270930plg.64.1686074906529; Tue, 06 Jun 2023 11:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686074906; cv=none; d=google.com; s=arc-20160816; b=CGesDiqLCV6QRv7BQNwghjMuIUc+PoEEgJol2xWNIB578Z1yak8UVXDECprZKniOAT x+BXuL5MNjCRUG2sAnKhBSFrj23BfHIfMSre2uwkOYNEX7/EMr8WKL6se4lHqRAKN30A cjOw6QFoUcL0IcepbBm5GRdRYQT850o/s09iL/RSfJIiAavYAVBAWzkDQHdQ4aC0kA72 eQf0f1goIX6eisX4jh8DOaLM79ylXMreeYwQtcHU6zKry7w5RhRWgxn2+mHpdkFb1BjV X/rpGiGD2SEjFxzeL7ezg+FONkuMir198eqDtkh5coBJOwWDYa4LaxVgqOPa/h130Wja v4Rw== 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=hkw5KBQuf/NKF+X/++ZZPuJk5Xi6P2JWUrLaYQX4YY4=; b=BMJpNqCrYIyKKH5/kgW7K3Yar2unpOTPB2KQUsaHIesXBmUXzIFU22XzY/DAxmvxh3 6Hvj3jQdGg2rrZUQ1rDFQRF4bYvaydAM0QDmuuZsomIaRbZKpt/SU8JmM9Mo7GeMh5WD S+n9AZLxW3O8bNG4iO6fWAPnWfh0JvHhmsfWL1eWgtKzFLAxxTcC1i8C7aCDg6ZOevYo 9XOay17u6OGC9Pa6ZHpBKQ1DZYX5wcf7YbBuyGR7to91T+sU+RlNIQ99O53qHCxQLNI/ 1Uzk6HUYqqR74Y8f03LxmcOR5KOkuIUcjb1hX8jMQT2VFCstbq2mBuf7G6woFOTVLfa7 TteA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ErqSfbfj; 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 u6-20020a170902e80600b001b029604713si7644996plg.108.2023.06.06.11.08.10; Tue, 06 Jun 2023 11:08:26 -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=ErqSfbfj; 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 S238828AbjFFRth (ORCPT + 99 others); Tue, 6 Jun 2023 13:49:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238670AbjFFRtf (ORCPT ); Tue, 6 Jun 2023 13:49:35 -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 4CCB210FF for ; Tue, 6 Jun 2023 10:49:34 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126253223039.31.openmobile.ne.jp [126.253.223.39]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A7C302BC; Tue, 6 Jun 2023 19:49:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686073746; bh=Wfzm05QKSXtSKpr/M7q7S0IxtecYSBK8fJ2Y6B5EI7Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ErqSfbfjEHkyXpnZVELPiDZOlZyVabpXFU9jTgUvAiAhE/M4elDW2I3AbLNTQuH1R FE/c6zTs01+nxiplb53owhiULMhkkLKdDMEBa8v9U7i+P0b7oorHQ4+1CCDkHbsg6O 9U5MflNUkJW5dtTI56XnnZ0WPEoeS4Sr4R5Cp7lk= Date: Tue, 6 Jun 2023 20:49:28 +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 , linux-kernel , Suraj Upadhyay Subject: Re: [PATCH v9 0/8] drm: Remove usage of deprecated DRM_* macros Message-ID: <20230606174928.GB14101@pendragon.ideasonboard.com> References: <20230606150545.GJ5197@pendragon.ideasonboard.com> <18891c17458.393a54b1127185.1502341592143085000@siddh.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <18891c17458.393a54b1127185.1502341592143085000@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 On Tue, Jun 06, 2023 at 10:59:14PM +0530, Siddh Raman Pant wrote: > On Tue, 06 Jun 2023 20:35:45 +0530, Laurent Pinchart wrote: > > This is a nice series, thank you for working on that. > > > > Now that the deprecated macros are used in drivers only, would it make > > sense to move them to a drm_print_deprecated.h header, to make sure no > > new driver uses them ? > > Sure, but then should that header be included wherever drm_print.h is > included with a find and replace, to avoid breakage? The idea would be to include the drm_print_deprecated.h header in drivers that still use the deprecated macros. > Not every file can be seen at a case-by-case basis or by coccinelle > as far as I understand its usage. Consider the following: > > DRM_INFO is used on line 210 of amd/amdgpu/amdgpu_acpi.c, but the > file does not even include drm_print.h directly. It includes the > amdgpu.h header, which includes the amdgpu_ring.h header, which > finally has the "#include " line. > > If a simple find and replace has to be done, then that can be added > at the end of the series. Maybe a simple grep for the deprecated macros would be enough to identify all the files that still use them ? -- Regards, Laurent Pinchart