From nobody Sat Nov 30 02:37:18 2024 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B87419EEA1 for ; Thu, 12 Sep 2024 12:00:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726142408; cv=none; b=YNaCD+W4BFr1xUFL+ogOFxPxvN0p0RyF61bpLcQ2jECKamVCp+60jcAno8IrGgDZeIv28Gc5mguD1qWmHf9NQrKBZW7ynD4gsid2pORfXs3CjkxRZVTQDyMvUlKNzWYF9lSNdvzGdQnkvVTxB9WU5MdO8o8G9uiaeevEwmN/W2w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726142408; c=relaxed/simple; bh=yxJBWRglkHbaNEq55y6z2HHjCNr7NB7VIGOEqAO5EvE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PsjpmWFGefNpitrFdbPOxvDA4QUEmG7d3JjWhuFJWE7Aj40J0QBSb/lBG5RXhOexXu7kVdocO7aQRapBCLBVT0BTRUCzhqovPlxnaHBlPecCXndiUvnuBPtnfLPCa1mjg7PfDDR+79NSgqj4rICbJpC88wilXk6m0jnP9fKQRBY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4X4GCg62BMzfc45; Thu, 12 Sep 2024 19:57:51 +0800 (CST) Received: from dggpeml500003.china.huawei.com (unknown [7.185.36.200]) by mail.maildlp.com (Postfix) with ESMTPS id DF76D1800FF; Thu, 12 Sep 2024 20:00:02 +0800 (CST) Received: from huawei.com (10.44.142.84) by dggpeml500003.china.huawei.com (7.185.36.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 12 Sep 2024 20:00:02 +0800 From: Yu Liao To: , CC: , , , , Subject: [PATCH 1/2] checkpatch: remove RCU APIs in deprecated_apis map Date: Thu, 12 Sep 2024 19:56:14 +0800 Message-ID: <20240912115615.1029452-2-liaoyu15@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240912115615.1029452-1-liaoyu15@huawei.com> References: <20240912115615.1029452-1-liaoyu15@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500003.china.huawei.com (7.185.36.200) Content-Type: text/plain; charset="utf-8" After commit 6ba7d681aca2 ("rcu: Remove wrapper definitions for obsolete RCU update functions"), the definitions for these RCU APIs have been removed, so there is no longer any need to retain them in the deprecated_apis map. Signed-off-by: Yu Liao --- scripts/checkpatch.pl | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4427572b2477..ca60a2db223a 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -834,16 +834,6 @@ foreach my $entry (@mode_permission_funcs) { $mode_perms_search =3D "(?:${mode_perms_search})"; =20 our %deprecated_apis =3D ( - "synchronize_rcu_bh" =3D> "synchronize_rcu", - "synchronize_rcu_bh_expedited" =3D> "synchronize_rcu_expedited", - "call_rcu_bh" =3D> "call_rcu", - "rcu_barrier_bh" =3D> "rcu_barrier", - "synchronize_sched" =3D> "synchronize_rcu", - "synchronize_sched_expedited" =3D> "synchronize_rcu_expedited", - "call_rcu_sched" =3D> "call_rcu", - "rcu_barrier_sched" =3D> "rcu_barrier", - "get_state_synchronize_sched" =3D> "get_state_synchronize_rcu", - "cond_synchronize_sched" =3D> "cond_synchronize_rcu", "kmap" =3D> "kmap_local_page", "kunmap" =3D> "kunmap_local", "kmap_atomic" =3D> "kmap_local_page", --=20 2.33.0 From nobody Sat Nov 30 02:37:18 2024 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDD1B1A0BF7 for ; Thu, 12 Sep 2024 12:00:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726142408; cv=none; b=HoNC/N/OA8OLU2txhJ3cHAIb/z1WfTVFY3q3g9zV4c78yO5qqoeoFhIkHeOWjt2mZS6YNh/ZcC8XZwoLfCLwdCc4W19Pomc6vkraszYqPpt1c6+zjipzDsVZWEa06HJjg0uZkPML3EN8aOGUef1gPZmy9jedIf5vZv9Pa2zm76U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726142408; c=relaxed/simple; bh=8mL4SYV/sc5j7FM0U9gCOlGikh+zeGgHTs1kbs1CkRw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nuh1PprVjaWCIXNARKzyW2AdnnBGDXeha5avjLfhXtTyik1ywdaNoURgiZiS5FSjynSxsVJHPn8ICiUEAzgCjFmIw7Kbfioz3eEeEIEZlXUK0wgHWO222O7FAxnrAK2gAEnbhYsptVMrjU7Cip3T6U1vEJBfxacL4E7OzurKBMk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4X4GDt5g3szyRTr; Thu, 12 Sep 2024 19:58:54 +0800 (CST) Received: from dggpeml500003.china.huawei.com (unknown [7.185.36.200]) by mail.maildlp.com (Postfix) with ESMTPS id 13D6B140132; Thu, 12 Sep 2024 20:00:03 +0800 (CST) Received: from huawei.com (10.44.142.84) by dggpeml500003.china.huawei.com (7.185.36.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 12 Sep 2024 20:00:02 +0800 From: Yu Liao To: , CC: , , , , Subject: [PATCH 2/2] checkpatch: add del_timer[_sync] to the deprecated list Date: Thu, 12 Sep 2024 19:56:15 +0800 Message-ID: <20240912115615.1029452-3-liaoyu15@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240912115615.1029452-1-liaoyu15@huawei.com> References: <20240912115615.1029452-1-liaoyu15@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500003.china.huawei.com (7.185.36.200) Content-Type: text/plain; charset="utf-8" del_timer[_sync]() have been deprecated and replaced by timer_delete[_sync](). But new code still use the deprecated timer APIs, so add them to the deprecated list. Signed-off-by: Yu Liao --- scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index ca60a2db223a..683f9805adee 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -838,6 +838,8 @@ our %deprecated_apis =3D ( "kunmap" =3D> "kunmap_local", "kmap_atomic" =3D> "kmap_local_page", "kunmap_atomic" =3D> "kunmap_local", + "del_timer" =3D> "timer_delete", + "del_timer_sync" =3D> "timer_delete_sync", ); =20 #Create a search pattern for all these strings to speed up a loop below --=20 2.33.0