[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 06/15] checkpatch: generalize xen handle matching
From: |
Stefano Stabellini |
Subject: |
[Qemu-devel] [PULL v2 06/15] checkpatch: generalize xen handle matching in the list of types |
Date: |
Tue, 22 May 2018 11:46:33 -0700 |
From: Paul Durrant <address@hidden>
All the xen stable APIs define handle types of the form:
xen<subject of API>_handle
and some define additional handle types of the form:
xen<subject of API>_<purpose of handle>_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 <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Acked-by: Anthony PERARD <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>
---
scripts/checkpatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index cb1b652..e3d8c2c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -271,7 +271,7 @@ our @typeList = (
qr{hwaddr},
# external libraries
qr{xml${Ident}},
- qr{xendevicemodel_handle},
+ qr{xen\w+_handle},
# Glib definitions
qr{gchar},
qr{gshort},
--
1.9.1
- [Qemu-devel] [PULL v2 00/15] xen-20180522-tag, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 01/15] xen-pvdevice: Introduce a simplistic xen-pvdevice save state, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 02/15] xen/pt: use address_space_memory object for memory region hooks, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 10/15] xen: remove other open-coded use of libxengnttab, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 15/15] xen_disk: be consistent with use of xendev and blkdev->xendev, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 05/15] xen-hvm: create separate function for ioreq server initialization, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 04/15] xen_pt: Present the size of 64 bit BARs correctly, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 03/15] configure: Add explanation for --enable-xen-pci-passthrough, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 07/15] xen: add a meaningful declaration of grant_copy_segment into xen_common.h, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 11/15] xen_backend: add an emulation of grant copy, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 06/15] checkpatch: generalize xen handle matching in the list of types,
Stefano Stabellini <=
- [Qemu-devel] [PULL v2 14/15] xen_disk: use a single entry iovec, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 13/15] xen_backend: make the xen_feature_grant_copy flag private, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 08/15] xen_backend: add grant table helpers, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 09/15] xen_disk: remove open-coded use of libxengnttab, Stefano Stabellini, 2018/05/22
- [Qemu-devel] [PULL v2 12/15] xen_disk: remove use of grant map/unmap, Stefano Stabellini, 2018/05/22
- Re: [Qemu-devel] [PULL v2 00/15] xen-20180522-tag, Peter Maydell, 2018/05/24