Received: from eggs.gnu.org ([140.186.70.92]:60827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvX5W-00047L-3U for qemu-devel@nongnu.org; Thu, 09 Feb 2012 11:43:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvX5Q-0007EE-8W for qemu-devel@nongnu.org; Thu, 09 Feb 2012 11:43:14 -0500 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:64131 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvX5Q-0007Dx-18 for qemu-devel@nongnu.org; Thu, 09 Feb 2012 11:43:08 -0500 Date: Thu, 9 Feb 2012 20:43:05 +0400 (MSK) From: malc In-Reply-To: <1328799563-18932-1-git-send-email-afaerber@suse.de> Message-ID: References: <1328799563-18932-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [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: =?ISO-8859-15?Q?Andreas_F=E4rber?= Cc: Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org, Alexander Graf , Blue Swirl , Paolo Bonzini On Thu, 9 Feb 2012, Andreas F?rber wrote: > Disable warnings for spaces before opening parenthesis in > hw/{ac97,adlib,cs4231a,es1370,gus,sb16}.c. > > Signed-off-by: Andreas F?rber > Cc: Blue Swirl > Cc: malc Thanks. > --- > 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 = qr{(?x: > )}; > # memory.h: ARM has a custom one > > +our $audio_files = qr{hw/ac97.c|hw/adlib.c|hw/cs4231a.c|hw/es1370.c|hw/gus.c|hw/sb16.c}; My perl is not up to snuff so i wouldn't know how to add audio/* to the mix. > + > sub build_types { > my $mods = "(?x: \n" . join("|\n ", @modifierList) . "\n)"; > my $all = "(?x: \n" . join("|\n ", @typeList) . "\n)"; > @@ -1966,6 +1968,9 @@ sub process { > asm|__asm__)$/x) > { > > + # malc wants to keep spacing consistent in the audio files. > + } elsif ($realfile =~ /($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. > -- mailto:av1474@comtv.ru