mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jan Höppner" <hoeppner@linux.vnet.ibm.com>
To: apw@canonical.com
Cc: joe@perches.com, linux-kernel@vger.kernel.org
Subject: Re: [BUG] checkpatch hangs at value annotation
Date: Wed, 26 Oct 2016 11:04:08 +0200	[thread overview]
Message-ID: <7fc50210-0b77-cc00-7b06-65cc725333f1@linux.vnet.ibm.com> (raw)
In-Reply-To: <acc5e1a9-f739-0e21-385b-70844dfa21c6@linux.vnet.ibm.com>

On 28.09.2016 14:17, Jan Höppner wrote:
> Hi Andy,
> 
> when I check the following patch example with checkpatch it will hang forever.
> 
> diff --git a/test.c b/test.c
> index 88c2eb0cb608..583625fdb715 100644
> --- a/test.c
> +++ b/test.c
> @@ -1 +1,3 @@
>  uint## BITS ##_t foobar;
> +
> +printk(KERN_WARNING "DEBUG: FOOBAR\n");
> 
> 
> The hang is due to the spaces in the concatenation in the first line.
> When you remove the space (like this uint##BITS##_t) it will run
> through just fine.
> 
> I debugged the script with perl -d a little and found that the problem
> is somewhere in the annotate_values sub-routine. It will always jump
> in this block:
> 
> } elsif ($cur =~ /^($Modifier)\s*/) {
>         print "MODIFIER($1)\n" if ($dbg_values > 1);
>         $type = 'T';
> 
> }
> 
> $1 seems to be undefined even though the regex matched. However, $1
> needs to be defined so that the loop can move on with evaluating the
> rest of the current string (see end of the routine).
> 
> If you want me to try a few more things or provide more data, please
> let me know. Due to lack of time and a vague knowledge of perl, I'm
> not able to provide a proposal for a proper fix.
> 
> Best regards,
> Jan
> 

Hi Andy,

as I haven't heard anything on that matter yet and it is still broken
in v4.8, just sending a PING.

Kind regards,
Jan

      reply	other threads:[~2016-10-26  9:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 12:17 Jan Höppner
2016-10-26  9:04 ` Jan Höppner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7fc50210-0b77-cc00-7b06-65cc725333f1@linux.vnet.ibm.com \
    --to=hoeppner@linux.vnet.ibm.com \
    --cc=apw@canonical.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®