From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKpNc-0006aX-RB for qemu-devel@nongnu.org; Mon, 09 Feb 2015 09:32:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKpNW-0007z7-Ma for qemu-devel@nongnu.org; Mon, 09 Feb 2015 09:32:04 -0500 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:56316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKpNW-0007xe-GQ for qemu-devel@nongnu.org; Mon, 09 Feb 2015 09:31:58 -0500 Received: by mail-wg0-f42.google.com with SMTP id x13so27144496wgg.1 for ; Mon, 09 Feb 2015 06:31:57 -0800 (PST) Sender: Paolo Bonzini Message-ID: <54D8C4DA.4080403@redhat.com> Date: Mon, 09 Feb 2015 15:31:54 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1423484293-46903-1-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1423484293-46903-1-git-send-email-borntraeger@de.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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 , Peter Maydell Cc: Andy Whitcroft , qemu-devel , dgilbert@redhat.com On 09/02/2015 13:18, 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") I think you need to send it as a toplevel patch for Peter to pick it up. Paolo > 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| > + \#| > + \#\#| > )(?:\s|$)| > ^(?:typedef|struct|enum)\b > )}x; >