From patchwork Fri Oct 13 11:58:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Weisbecker X-Patchwork-Id: 13420802 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F787CDB47E for ; Fri, 13 Oct 2023 11:59:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231381AbjJML7O (ORCPT ); Fri, 13 Oct 2023 07:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231479AbjJML7N (ORCPT ); Fri, 13 Oct 2023 07:59:13 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 872BBC9; Fri, 13 Oct 2023 04:59:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA9F8C433C8; Fri, 13 Oct 2023 11:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697198351; bh=3eBYDTkgQaXsYR67+otBc1WF4QZDBr1bb/8NAZitcis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GjciNQHBgTaujV2YgKuszJVG75vd0v5Sdj0qB0zOrrztJLsKd4G5u5Q96Yl3roHfW SvmYnxjYChGPOfHEw8tX94L1f32RIPY4Qgh1NeESzM/EaI7zWpjcLtF0VuaUH+HMYS R43V10VNExqNF1t/yyj8bEGz7imS6Zrneh1GCyhNn/GYZ+8kOkkmGcF+RPm+l+xAbs kZQmcQsobtP4GpVztNVu4AhO2PR2TKsifZT437968FExewObUmL46ptXbJTeFkcmAg 0J90DyZYUEv8KqF7ozFswqhfVnFJJyValjwtY6+TW5NzBezmtQGjG4HwFsx/MpqQSP xJ/PUpIqBXAOw== From: Frederic Weisbecker To: LKML Cc: "Joel Fernandes (Google)" , Boqun Feng , Josh Triplett , Mathieu Desnoyers , Neeraj Upadhyay , "Paul E . McKenney" , Steven Rostedt , Uladzislau Rezki , rcu , Frederic Weisbecker Subject: [PATCH 01/18] Revert "checkpatch: Error out if deprecated RCU API used" Date: Fri, 13 Oct 2023 13:58:45 +0200 Message-Id: <20231013115902.1059735-2-frederic@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231013115902.1059735-1-frederic@kernel.org> References: <20231013115902.1059735-1-frederic@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org From: "Joel Fernandes (Google)" 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 Signed-off-by: Frederic Weisbecker --- scripts/checkpatch.pl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7d16f863edf1..25fdb7fda112 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -6427,15 +6427,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*\)/ &&