[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f1d8b3871cc4fc9afea715c70b3615595223b576.camel@perches.com>
Date: Mon, 12 Oct 2020 08:04:47 -0700
From: Joe Perches <joe@...ches.com>
To: Borislav Petkov <bp@...en8.de>
Cc: X86 ML <x86@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>,
Andy Whitcroft <apw@...onical.com>,
LKML <linux-kernel@...r.kernel.org>,
Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH -v3] checkpatch: Check for .byte-spelled insn opcodes
documentation on x86
On Mon, 2020-10-12 at 16:23 +0200, Borislav Petkov wrote:
> From: Borislav Petkov <bp@...e.de>
[]
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
[]
> @@ -408,6 +408,7 @@ our $Lval = qr{$Ident(?:$Member)*};
> our $Int_type = qr{(?i)llu|ull|ll|lu|ul|l|u};
> our $Binary = qr{(?i)0b[01]+$Int_type?};
> our $Hex = qr{(?i)0x[0-9a-f]+$Int_type?};
> +our $Hex_byte = qr{(?i)0x[0-9a-f]{1,2}};
$Hex_byte needs to be generic and this needs to
have a trailing \b otherwise it would match
0x12 from 0x1234 and leave 34
Powered by blists - more mailing lists