From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGhfb-0004Bw-SR for qemu-devel@nongnu.org; Thu, 10 May 2018 05:15:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGhfZ-0002MW-Ee for qemu-devel@nongnu.org; Thu, 10 May 2018 05:15:27 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:30400) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGhfY-0002K7-TJ for qemu-devel@nongnu.org; Thu, 10 May 2018 05:15:25 -0400 From: Paul Durrant Date: Thu, 10 May 2018 10:15:17 +0100 Message-ID: <20180510091518.28199-3-paul.durrant@citrix.com> In-Reply-To: <20180510091518.28199-1-paul.durrant@citrix.com> References: <20180510091518.28199-1-paul.durrant@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 2/3] checkpatch: generalize xen handle matching in the list of types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, xen-devel@lists.xenproject.org Cc: Paul Durrant , Eric Blake , Paolo Bonzini , "Daniel P . Berrange" All the xen stable APIs define handle types of the form: _handle and some define additional handle types of the form: __handle Examples of these are xenforeignmemory_handle and xenforeignmemory_resource_handle. Both of these types will be misparsed by checkpatch if they appear as the first token in a line since, as types defined by an external library, they do not conform to the QEMU CODING_STYLE, which suggests CamelCase. A previous patch (5ac067a24a8) added xendevicemodel_handle to the list of types. This patch changes that to xen\w+_handle such that it will match all Xen stable API handles of the forms detailed above. Signed-off-by: Paul Durrant --- Cc: Eric Blake Cc: Paolo Bonzini Cc: Daniel P. Berrange v2: - New in this version --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5b8735defb..98ed799f29 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -266,7 +266,7 @@ our @typeList = ( qr{target_(?:u)?long}, qr{hwaddr}, qr{xml${Ident}}, - qr{xendevicemodel_handle}, + qr{xen\w+_handle}, ); # This can be modified by sub possible. Since it can be empty, be careful -- 2.11.0