checkpatch: fix incompatibility with old perl
PATCH 1/1 checkpatch: fix incompatibility with old perl
Do not use '/r' modifier which was introduced in perl 5.14.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>
--- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/checkpatch.pl +2 -1
@@ -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; + $tmpline =~ s/($hex[.:\/ ])+$hex//g; if ($tmpline =~ /(?<!0x)$hex/) { ERROR("Hex numbers must be prefixed with '0x'\n" .
Signature · 1 line
2.11.1
Quoted 4 lines · On Wed, 4 Oct 2017 18:44:20 +0300 Vladimir Sementsov-Ogievskiy…
Do not use '/r' modifier which was introduced in perl 5.14.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>---
Fixes 3e5875afc0f ("checkpatch: check trace-events code style")
Tested-by Alex Williamson <[email protected]>
Thanks
Quoted 17 lines
scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)scripts/checkpatch.pl +2
-1@@ -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; + $tmpline =~ s/($hex[.:\/ ])+$hex//g; if ($tmpline =~ /(?<!0x)$hex/) { ERROR("Hex numbers must be prefixed with '0x'\n" .
Quoted 6 lines · Vladimir Sementsov-Ogievskiy
Do not use '/r' modifier which was introduced in perl 5.14.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by Daniel P. Berrange <[email protected]>
Quoted 6 lines
scripts/checkpatch.pl +0
-0
scripts/checkpatch.pl sub process { · line 1439
Quoted 9 lines
scripts/checkpatch.pl +2
-1@@ -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; + $tmpline =~ s/($hex[.:\/ ])+$hex//g; if ($tmpline =~ /(?<!0x)$hex/) { ERROR("Hex numbers must be prefixed with '0x'\n" .
Regards,
Daniel
Signature · 3 lines
|: 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 :|
Stefan Hajnoczi
AppliedQuoted 6 lines · Vladimir Sementsov-Ogievskiy
Do not use '/r' modifier which was introduced in perl 5.14.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks, applied to my tracing tree:
https://github.com/stefanha/qemu/commits/tracing
Stefan