diff mbox

Checkpatch: Prevent __init_or_module complaints

Message ID 1269353156-26349-1-git-send-email-cyril@ti.com (mailing list archive)
State Awaiting Upstream
Headers show

Commit Message

Cyril Chemparathy March 23, 2010, 2:05 p.m. UTC
None
diff mbox

Patch

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index a4d7434..41e903f 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -152,7 +152,7 @@  our $Attribute	= qr{
 			const|
 			__read_mostly|
 			__kprobes|
-			__(?:mem|cpu|dev|)(?:initdata|initconst|init\b)|
+			__(?:mem|cpu|dev|)(?:initdata|init|init_or_module)|
 			____cacheline_aligned|
 			____cacheline_aligned_in_smp|
 			____cacheline_internodealigned_in_smp|