checkpatch: added support for struct MOCK(foo) syntax

This adds struct MOCK(foo) as a NonptrType so that it is recognized
correctly in declarations.

Change-Id: I2a3e321ef201433230c4dcfd694562194a613eef
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 161b022..5b88cbf 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -748,6 +748,10 @@
 			(?:
 				(?:typeof|__typeof__)\s*\([^\)]*\)|
 				(?:$typeTypedefs\b)|
+				# Matching a \b breaks struct MOCK(foo) syntax,
+				# so we need to have it not lumped in with the
+				# types in @typeList.
+				(?:struct\s+MOCK\($Ident\))|
 				(?:${all}\b)
 			)
 			(?:\s+$Modifier|\s+const)*