checkpatch-mark-kunmap-and-kunmap_atomic-deprecated.patch removed from -mm tree
The quilt patch titled
Subject: checkpatch: mark kunmap() and kunmap_atomic() deprecated
has been removed from the -mm tree. Its filename was
checkpatch-mark-kunmap-and-kunmap_atomic-deprecated.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Ira Weiny <[email protected]>
Subject: checkpatch: mark kunmap() and kunmap_atomic() deprecated
Date: Thu, 29 Dec 2022 14:17:15 -0800
It was suggested by Fabio that kunmap() be marked deprecated in checkpatch.[1] This did not seem necessary until an invalid conversion of kmap_local_page() appeared in mainline.[2][3] The introduction of this bug would have been flagged with kunmap() being marked deprecated.
Add kunmap() and kunmap_atomic() to checkpatch to help prevent further confusion.
[1] https://lore.kernel.org/all/1884934.6tgchFWduM@suse/
[2] d406d26745ab ("cifs: skip alloc when request has no pages")
[3] https://lore.kernel.org/r/[email protected]
---
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-mark-kunmap-and-kunmap_atomic-deprecated +2 -0
@@ -823,7 +823,9 @@ our %deprecated_apis = ( "get_state_synchronize_sched" => "get_state_synchronize_rcu", "cond_synchronize_sched" => "cond_synchronize_rcu", "kmap" => "kmap_local_page", + "kunmap" => "kunmap_local", "kmap_atomic" => "kmap_local_page", + "kunmap_atomic" => "kunmap_local", ); #Create a search pattern for all these strings to speed up a loop below
_
Patches currently in -mm which might be from [email protected] are