Otherwise it can warn this: ERROR: space prohibited between function name and open parenthesis '('
When with things like this: typedef gboolean (*it_tree_iterator)(ITValue start, ITValue end); CC: Paolo Bonzini <pbonz...@redhat.com> CC: Stefan Hajnoczi <stefa...@redhat.com> CC: "Daniel P. Berrangé" <berra...@redhat.com> CC: Markus Armbruster <arm...@redhat.com> CC: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> CC: Fam Zheng <f...@redhat.com> Signed-off-by: Peter Xu <pet...@redhat.com> --- scripts/checkpatch.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d52207a3cc..6c25449cd3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -266,6 +266,20 @@ our @typeList = ( qr{target_(?:u)?long}, qr{hwaddr}, qr{xml${Ident}}, + # Glib definitions + qr{gchar}, + qr{gshort}, + qr{glong}, + qr{gint}, + qr{gboolean}, + qr{guchar}, + qr{gushort}, + qr{gulong}, + qr{guint}, + qr{gfloat}, + qr{gdouble}, + qr{gpointer}, + qr{gconstpointer}, ); # This can be modified by sub possible. Since it can be empty, be careful -- 2.14.3