Received: from eggs.gnu.org ([140.186.70.92]:46047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvVTD-0004Ux-IZ for qemu-devel@nongnu.org; Thu, 09 Feb 2012 09:59:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvVT5-0002MN-J5 for qemu-devel@nongnu.org; Thu, 09 Feb 2012 09:59:35 -0500 Received: from cantor2.suse.de ([195.135.220.15]:59537 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvVT5-0002MG-D8 for qemu-devel@nongnu.org; Thu, 09 Feb 2012 09:59:27 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 9 Feb 2012 15:59:23 +0100 Message-Id: <1328799563-18932-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Stefan Hajnoczi , Alexander Graf , Blue Swirl , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= Disable warnings for spaces before opening parenthesis in hw/{ac97,adlib,cs4231a,es1370,gus,sb16}.c. Signed-off-by: Andreas F=C3=A4rber Cc: Blue Swirl Cc: malc --- scripts/checkpatch.pl | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 8850a5f..5433736 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -246,6 +246,8 @@ our $allowed_asm_includes =3D qr{(?x: )}; # memory.h: ARM has a custom one =20 +our $audio_files =3D qr{hw/ac97.c|hw/adlib.c|hw/cs4231a.c|hw/es1370.c|hw= /gus.c|hw/sb16.c}; + sub build_types { my $mods =3D "(?x: \n" . join("|\n ", @modifierList) . "\n)"; my $all =3D "(?x: \n" . join("|\n ", @typeList) . "\n)"; @@ -1966,6 +1968,9 @@ sub process { asm|__asm__)$/x) { =20 + # malc wants to keep spacing consistent in the audio files. + } elsif ($realfile =3D~ /($audio_files)/) { + # cpp #define statements have non-optional spaces, ie # if there is a space between the name and the open # parenthesis it is simply not a parameter group. --=20 1.7.7