Skip to contentSkip to conversation

checkpatch: remove check for include/asm modifications

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: remove check for include/asm modifications

include/asm/ got removed over a decade back. checkpatch still has a check for it: MODIFIED_INCLUDE_ASM

Remove the check as it is no longer useful.

---
 scripts/checkpatch.pl | 4 ----
 1 file changed, 4 deletions(-)
scripts/checkpatch.pl +0 -4
index f42e5ba16d9b..798e2236b1a3 100755
@@ -2799,10 +2799,6 @@ sub process {
 				     "patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n");
 			}
 
-			if ($realfile =~ m@^include/asm/@) {
-				ERROR("MODIFIED_INCLUDE_ASM",
-				      "do not modify files in include/asm, change architecture specific files in include/asm-<architecture>\n" . "$here$rawline\n");
-			}
 			$found_file = 1;
 		}
 
Signature · 6 lines
2.30.0

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees