Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7495792rwd; Tue, 6 Jun 2023 11:31:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ524b+CSi45CusUr4LKGWCrCCcDy25S8cfr3elfWCpYyCk58N39Po3KmkD4KryCiByfJrKA X-Received: by 2002:a05:6214:2a4f:b0:626:1b50:8538 with SMTP id jf15-20020a0562142a4f00b006261b508538mr410775qvb.45.1686076308093; Tue, 06 Jun 2023 11:31:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686076308; cv=pass; d=google.com; s=arc-20160816; b=oXIq6DLZoyNDQufb23F8qDMmYwBTBYTQ3KRRZhqYNB2Cm8U9u+1mmRHGOA+3+wVZi2 I/C540p8LAg/GQlf9++8CDPgzG/jXH3yrKuB+c90cGpPzNWJZGp6Rc2QgOiNGCLTVNn4 UdE3FyaEWXZ3GxA90WAI8Nj36nUNMEliU5m18Eud8up3HPn/OoVNS3x3Fc5nwEIq6Trg 6Z5lIzKNBidC0Rw14CzOLCw5A76cR0NL8L6Nb9EIUFl4uqGVM1C+azVGOeRYhLCKTq8m /yDvqz35BiSneM0Q08dGxfXCRMPt0CYInRn79w0lAYRepMZyrcLzJ7DaCwPU1RIRUBnr IRDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:dkim-signature; bh=RjUGwLLClgouRbL86uwY1TLqSDBa8rqBZ+WH4dlvYhI=; b=p+GMqMtoBtzoG9bZ/KVJvcyY65AGlHzi3qOWiwNDzhWmc6Y6CcO4BZn13a5immksha blH3NeHXpVWxC/zjul/OMG8D7G/zLb7vpfifu9HGFu+xnKxWwHQAJs6rE0I/HihrUHCm oHha6VmTTxF2PylUlJGLZon5POqd73vvJzgm+cxwxLvv0dvh1d/nLOApNfKItGKotT8y pqCpzjrHRtseom/Qaj4UIRsul6y0Bj/Pim7NDPahOJi5rAk/zaet9T0McTmhvm1cOc+h maKXGvjtZsiH/0zU/KlJUR32GOOWEBe0MctHJhKOP0hm8BUuRvBZQKIT7JFACx2kbAB7 YkhA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=Rcu1ZTig; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iu14-20020ad45cce000000b00626168c1027si6828994qvb.463.2023.06.06.11.31.33; Tue, 06 Jun 2023 11:31:48 -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=Rcu1ZTig; 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 S233776AbjFFSTR (ORCPT + 99 others); Tue, 6 Jun 2023 14:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237239AbjFFSTI (ORCPT ); Tue, 6 Jun 2023 14:19:08 -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 0CE1A171D for ; Tue, 6 Jun 2023 11:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686075501; cv=none; d=zohomail.in; s=zohoarc; b=a3zzGU4AUePU6Z+r1xA8rSonmH/wrgblgWTY+4R3F2pKzSezF6+rtgXSB+97ziYeaBL1LRzzvKjjYzLDoLs7uBrkrzWn8CgYXUq4DYMyePqIBm3B1RBOYBMUd4aOW6nuA8BfYDcy1Fsp0AcuxKChDWKO2Ip7/Vbi81pvuDrw9hM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1686075501; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=RjUGwLLClgouRbL86uwY1TLqSDBa8rqBZ+WH4dlvYhI=; b=O18pC2SS76gPzfdzk5MOkdq7pL6movvd/9UOtCearhQnLA2F3EkbJTt7PGeHmTrSOHJdFrxQBdQaqrO0nRCqFRX1mF4ytXAQqY99PoSVrrFVyi7JAeewkZIYsS12vHjRt+M0M7oF0tby/Jq2EZh+3t4TGYHWUVZ8jEi7y+qzl4U= 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=1686075501; s=zmail; d=siddh.me; i=code@siddh.me; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=RjUGwLLClgouRbL86uwY1TLqSDBa8rqBZ+WH4dlvYhI=; b=Rcu1ZTigMmuf5GfDOlGQAr/bRxFM8fTZuM6SSpB73xPn9e4TtbaoyqflsRWKkjl0 ImV5EHhV0CwBEAXKnSt+sOO15GP63f2/c/Uvu41lndQBDfYJ8Z4IXsqjyEWQEUU2y+I PzTFoD3j7bL6B1jC9KlOa8mioyFOqnts18BZFQzg= Received: from mail.zoho.in by mx.zoho.in with SMTP id 1686075470109128.45647873619112; Tue, 6 Jun 2023 23:47:50 +0530 (IST) Date: Tue, 06 Jun 2023 23:47:50 +0530 From: Siddh Raman Pant To: "Laurent Pinchart" 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" Message-ID: <18891edf10b.42f0ffa4128414.8582548531031990480@siddh.me> In-Reply-To: <20230606174928.GB14101@pendragon.ideasonboard.com> References: <20230606150545.GJ5197@pendragon.ideasonboard.com> <18891c17458.393a54b1127185.1502341592143085000@siddh.me> <20230606174928.GB14101@pendragon.ideasonboard.com> Subject: Re: [PATCH v9 0/8] drm: Remove usage of deprecated DRM_* macros MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail 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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 06 Jun 2023 23:19:28 +0530, Laurent Pinchart wrote: > The idea would be to include the drm_print_deprecated.h header in > drivers that still use the deprecated macros. Yeah, what I meant was in a "first pass" kind of sense. > > 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 ? Hmm, so the drm_print_deprecated.h should be included individually on all the files, regardless of whether they include drm_print.h directly or not? Actually that makes sense, so further inclusion of top-level header would not automatically include the deprecated macros. Since this needs some thought, I will be sending v10 without this. This change can be sent later separately, as it will anyways be a huge patch, and 10 is already a big enough revision number. Thanks, Siddh