From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D475CC433DF for ; Mon, 12 Oct 2020 15:04:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9329620838 for ; Mon, 12 Oct 2020 15:04:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389239AbgJLPEv (ORCPT ); Mon, 12 Oct 2020 11:04:51 -0400 Received: from smtprelay0108.hostedemail.com ([216.40.44.108]:55620 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388518AbgJLPEv (ORCPT ); Mon, 12 Oct 2020 11:04:51 -0400 Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave06.hostedemail.com (Postfix) with ESMTP id 79CB080081F3 for ; Mon, 12 Oct 2020 15:04:50 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id C6683100E7B44; Mon, 12 Oct 2020 15:04:49 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: scarf80_1d0107c271fb X-Filterd-Recvd-Size: 1777 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Mon, 12 Oct 2020 15:04:48 +0000 (UTC) Message-ID: Subject: Re: [PATCH -v3] checkpatch: Check for .byte-spelled insn opcodes documentation on x86 From: Joe Perches To: Borislav Petkov Cc: X86 ML , Andrew Morton , Andy Whitcroft , LKML , Peter Zijlstra Date: Mon, 12 Oct 2020 08:04:47 -0700 In-Reply-To: <20201012142306.GB22829@zn.tnic> References: <20201009161423.14583-1-bp@alien8.de> <20201010105421.GA24674@zn.tnic> <4147e49c0b1251343181b5580d946c2273247927.camel@perches.com> <20201010161112.GC24674@zn.tnic> <20201012142148.GA22829@zn.tnic> <20201012142306.GB22829@zn.tnic> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-10-12 at 16:23 +0200, Borislav Petkov wrote: > From: Borislav Petkov [] > 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