Received: from eggs.gnu.org ([2001:4830:134:3::10]:45373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL9VM-0004Rw-GA for qemu-devel@nongnu.org; Tue, 10 Feb 2015 07:01:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YL9VG-0004xo-Dc for qemu-devel@nongnu.org; Tue, 10 Feb 2015 07:01:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL9VG-0004xH-6k for qemu-devel@nongnu.org; Tue, 10 Feb 2015 07:01:18 -0500 From: Markus Armbruster References: <1423510988-48508-1-git-send-email-borntraeger@de.ibm.com> <54D9D1F1.7090004@de.ibm.com> Date: Tue, 10 Feb 2015 13:01:07 +0100 In-Reply-To: <54D9D1F1.7090004@de.ibm.com> (Christian Borntraeger's message of "Tue, 10 Feb 2015 10:40:01 +0100") Message-ID: <87twyuj7r0.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] checkpatch: port fix from kernel "## is not a valid modifier" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: Andy Whitcroft , Peter Maydell , qemu-devel , "Dr. David Alan Gilbert" Christian Borntraeger writes: > Am 09.02.2015 um 23:54 schrieb Peter Maydell: >> On 9 February 2015 at 19:43, Christian Borntraeger >> wrote: >>> From: Andy Whitcroft >>> >>> checkpatch currently loops on fpu/softfloat.c >>> Turns out this is fixed in the Linux version of checkpatch. >>> >>> So this is a port of Andy Whitcrofts fix from Linux, >>> Original commit was commit 89a883530fe7 ("checkpatch: ## is not a >>> valid modifier") >>> >>> Cc: Andy Whitcroft >>> Signed-off-by: Christian Borntraeger >>> --- >>> scripts/checkpatch.pl | 4 +++- >>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> >>> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl >>> index 5df61f9..8635f4c 100755 >>> --- a/scripts/checkpatch.pl >>> +++ b/scripts/checkpatch.pl >>> @@ -1061,7 +1061,9 @@ sub possible { >>> case| >>> else| >>> asm|__asm__| >>> - do >>> + do| >>> + \#| >>> + \#\#| >> >> Are you sure this line should end with a '|', given it's the >> last item in the alternation ? > > Getting rid of that additional | also works, but both ways fix the endless loop. > Certainly not having the "|" seems cleaner. (No idea why it works). > Shall I respin without the "|"? I will then also send a patch for the > kernel, in case we resync again in the future. If it works, I'd take it as is into QEMU, and get the cleanup from the kernel in the next resync.