Skip to contentSkip to conversation

checkpatch: remove obsolete check for __dev* section markers

PATCH New Dwaipayan Ray 1 participant 1 message Jul 18, 2021 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 checkpatch: remove obsolete check for __dev* section markers

Since commit 54b956b90360 ("Remove __dev* markings from init.h"), the check for __dev* section markers in checkpatch is obsolete as no new instances of these markers can be introduced in the kernel.

Remove this obsolete check from checkpatch.

---

Changes in v2:
- Reword commit message as suggested by Lukas
https://lore.kernel.org/lkml/CAKXUXMyvOh0GvpEf4uX5iFJYOJLo43tmO16Uf34j4i6XD0vBcg@mail.gmail.com/

 scripts/checkpatch.pl | 6 ------
 1 file changed, 6 deletions(-)
scripts/checkpatch.pl +0 -6
index 461d4221e4a4..e29c0961b25e 100755
@@ -4023,12 +4023,6 @@ sub process {
 			     "CVS style keyword markers, these will _not_ be updated\n". $herecurr);
 		}
 
-# check for old HOTPLUG __dev<foo> section markings
-		if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
-			WARN("HOTPLUG_SECTION",
-			     "Using $1 is unnecessary\n" . $herecurr);
-		}
-
 # Check for potential 'bare' types
 		my ($stat, $cond, $line_nr_next, $remain_next, $off_next,
 		    $realline_next);
Signature · 1 line
2.28.0