From: "Daniel P. Berrange" <berrange@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Cc: Alex Williamson <alex.williamson@redhat.com>,
qemu-devel@nongnu.org, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH] Revert: checkpatch: check trace-events code style
Date: Wed, 4 Oct 2017 12:51:48 +0100 [thread overview]
Message-ID: <20171004115148.GH17517@redhat.com> (raw)
In-Reply-To: <56527e57-ee99-4d9a-9048-9a9b9900a86b@virtuozzo.com>
On Wed, Oct 04, 2017 at 12:59:04PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> 04.10.2017 01:00, Alex Williamson wrote:
> > Commit c3e5875afc0f ("checkpatch: check trace-events code style")
> > introduces a regression as reported:
> >
> > https://lists.gnu.org/archive/html/qemu-devel/2017-08/msg05820.html
> >
> > Bareword found where operator expected at ./scripts/checkpatch.pl line 1350, near "s/($hex[.:\/ ])+$hex//gr"
> > syntax error at ./scripts/checkpatch.pl line 1350, near "s/($hex[.:\/ ])+$hex//gr"
> > Execution of ./scripts/checkpatch.pl aborted due to compilation errors.
> >
> > $ perl -v
> >
> > This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
>
> v5.10.1 is 8 years old.
> most possibly the error relates to /r modifier, which was added int perl
> 5.14, so, possible solution would be
>
> @@ -1432,7 +1432,8 @@ sub process {
> qr/%[-+
> *.0-9]*([hljztL]|ll|hh)?(x|X|"\s*PRI[xX][^"]*"?)/;
>
> # don't consider groups splitted by [.:/ ], like 2A.20:12ab
> - my $tmpline = $rawline =~ s/($hex[.:\/ ])+$hex//gr;
> + my $tmpline = $rawline;
> + my $tmpline =~ s/($hex[.:\/ ])+$hex//g;
>
> if ($tmpline =~ /(?<!0x)$hex/) {
> ERROR("Hex numbers must be prefixed with '0x'\n" .
Yes, that fixes the error when run on a rhel6 vintage Perl.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2017-10-04 11:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-03 22:00 [Qemu-devel] [PATCH] Revert: checkpatch: check trace-events code style Alex Williamson
2017-10-04 9:33 ` Vladimir Sementsov-Ogievskiy
2017-10-04 9:59 ` Vladimir Sementsov-Ogievskiy
2017-10-04 11:51 ` Daniel P. Berrange [this message]
2017-10-04 14:59 ` Alex Williamson
2017-10-04 15:46 ` Vladimir Sementsov-Ogievskiy
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=20171004115148.GH17517@redhat.com \
--to=berrange@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=vsementsov@virtuozzo.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.