Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1545301rwb; Wed, 26 Jul 2023 14:26:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlFj0rPps9TkubsthKuGHDWNeuZhBl8COKjaTTaTzq9K0BEy5t9iuuhzMeqCW9tmZAGX3LpT X-Received: by 2002:a05:6512:3d09:b0:4f8:67f0:7253 with SMTP id d9-20020a0565123d0900b004f867f07253mr269005lfv.49.1690406760788; Wed, 26 Jul 2023 14:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690406760; cv=none; d=google.com; s=arc-20160816; b=tVn45Q6F9YWmnPkhvHkMkM7CX980nJtpcrYD/pKIyo1tk9QT72LA4wni/glFBcs4mA bYB9/XWBhkJDtxEXMZGcvWGkUw38wZEdIwKA38xG5zyJG9u7gPaLY6ZLnFTFSzNJnlrT 5vdOLxI9RGGBEdYbPl6XMHIGki3tp57Kh8VvvemMpmHln9B3GXDGxCFrNWcAPGwtX4ql nKw4YdPWfB1EXqOLCe9WNVg+ZnVoitZEg2n6V7fGQ3LqBh0veoddBpZ+IIUUVI6xaC3D pZIrsmekp1IvCKuv3/OjWrI2wpwdUY5eWaBaRcjXciK5PeYA3YBohSQ3kuPteW04NjTK ghEQ== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=eNVJfrm5cQkrMKArFN+NSssG3PXvumQbMlqqBiCj21A=; fh=tF8l8R4XtrCsqKvSfFeXd+kdOZfxcHSgpn3oSS98WyM=; b=YEcfpzGC2ZGTg59V77+FI5By++lMlB97qNwxbDyBKMfIZc3uWSp+HDXDNd7qyFRQyL fQA+Lc5g3Hx+6fu0M8Ad26cq5kCcMGt5Mij+a9OXVObmJX0fU9sTmHWYYkSbWV5KeoKW a6Mo1+U+MNXVoQxMy3fc9bcOAivvb4wObABfbBRweScZvjg22E1/MM/1y8CivE3e7lWZ INkB/dDrpT6C73SIBKFrd/dLxJp/eSolNbN4KITlhrDUjxAPorGMFC38n2TmsaPM/TiN /XpBCWOVwUNsp6SgAFP6xASRXdXPQCh/RF0Sj3LkdRlo8WTw2u4BcE5sUDbjGwG5VwMc akFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hb2ZFJ6c; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a056402074800b005221e8a2be6si6487593edy.309.2023.07.26.14.25.35; Wed, 26 Jul 2023 14:26:00 -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=@kernel.org header.s=k20201202 header.b=hb2ZFJ6c; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229989AbjGZVMl (ORCPT + 99 others); Wed, 26 Jul 2023 17:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjGZVMk (ORCPT ); Wed, 26 Jul 2023 17:12:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B1521BE8; Wed, 26 Jul 2023 14:12:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 119F061CC6; Wed, 26 Jul 2023 21:12:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AADFC433C8; Wed, 26 Jul 2023 21:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690405956; bh=i828POzSbl7BsPa5p4K6TyQnc2ZswTp17QKbFbtTbdE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=hb2ZFJ6c4tp11ai6lX9YvQwRitMYYXguiTRs4knH/MWLlvRUiZ2sQzFrQuuFwQI5d TjjWE2FQf1TWcAJV0FSuu6ajjE/NwyIXhQtKMAheCYaajNjccHCRZmEdgpTsrwpmbw Aq+eQtnOtNXRuEjtfXnOjop4RvkVg9FeWxuX8CRuURCv2ELQbv24kzJiVHQi8C9v9H bgW3n/he3i/q2SuDEpc4Wb7U9mhECEo99eTnjmm5uVC+fZ6dbDH/MYLDYjSvRuSCX+ DsZeQZlJn1kMn9j3mAYc2TzVZsiO9f4Q83+DJbqIPYSum7cPR0GF3jca01MfoATS2R IoYRegacHRV7g== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id F3BE6CE0A1C; Wed, 26 Jul 2023 14:12:35 -0700 (PDT) Date: Wed, 26 Jul 2023 14:12:35 -0700 From: "Paul E. McKenney" To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org, Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , rcu@vger.kernel.org Subject: Re: [PATCH 5/5] Revert "checkpatch: Error out if deprecated RCU API used" Message-ID: Reply-To: paulmck@kernel.org References: <20230725232913.2981357-1-joel@joelfernandes.org> <20230725232913.2981357-6-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230725232913.2981357-6-joel@joelfernandes.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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, Jul 25, 2023 at 11:29:10PM +0000, Joel Fernandes (Google) wrote: > The check for single-argument kfree_rcu() is no longer needed as all > users have been converted. > > This reverts commit 1eacac3255495be7502d406e2ba5444fb5c3607c. > > Signed-off-by: Joel Fernandes (Google) Good eyes, thank you! I applied this with an updated commit log as shown below. Please let me know if I messed something up. Thanx, Paul ------------------------------------------------------------------------ commit 1f5f0053f7662385d9ead46d4c0d2d4fe9aaa73a Author: Joel Fernandes (Google) Date: Tue Jul 25 23:29:10 2023 +0000 Revert "checkpatch: Error out if deprecated RCU API used" The definition for single-argument kfree_rcu() has been removed, so that any further attempt to use it will result in a build error. Because of this build error, there is no longer any need for a special check in checkpatch.pl. Therefore, revert commit 1eacac3255495be7502d406e2ba5444fb5c3607c. Signed-off-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a9841148cde2..528f619520eb 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -6422,15 +6422,6 @@ sub process { } } -# check for soon-to-be-deprecated single-argument k[v]free_rcu() API - if ($line =~ /\bk[v]?free_rcu\s*\([^(]+\)/) { - if ($line =~ /\bk[v]?free_rcu\s*\([^,]+\)/) { - ERROR("DEPRECATED_API", - "Single-argument k[v]free_rcu() API is deprecated, please pass rcu_head object or call k[v]free_rcu_mightsleep()." . $herecurr); - } - } - - # check for unnecessary "Out of Memory" messages if ($line =~ /^\+.*\b$logFunctions\s*\(/ && $prevline =~ /^[ \+]\s*if\s*\(\s*(\!\s*|NULL\s*==\s*)?($Lval)(\s*==\s*NULL\s*)?\s*\)/ &&