mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 14:01:31 -10:00
checkpatch: Add xendevicemodel_handle to the list of types
This avoids checkpatch misparsing (as statements) long function
definitions or declarations, which sometimes start with constructs
like this:
static inline int xendevicemodel_relocate_memory(
xendevicemodel_handle *dmod, domid_t domid, ...
The type xendevicemodel_handle does not conform to Qemu CODING_STYLE,
which would suggest CamelCase. However, it is a type defined by the
Xen Project in xen.git. It would be possible to introduce a typedef
to allow the qemu code to refer to it by a differently-spelled name,
but that would obfuscate more than it would clarify.
CC: Eric Blake <[email protected]>
CC: Paolo Bonzini <[email protected]>
CC: Daniel P. Berrange <[email protected]>
Signed-off-by: Ian Jackson <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
This commit is contained in:
1 parent
b8846a4d63
commit
5ac067a24a
1 file changed
+1
@@ -266,6 +266,7 @@ our @typeList = (
|
||||
qr{target_(?:u)?long},
|
||||
qr{hwaddr},
|
||||
qr{xml${Ident}},
|
||||
qr{xendevicemodel_handle},
|
||||
);
|
||||
|
||||
# This can be modified by sub possible. Since it can be empty, be careful
|
||||
|
||||
Reference in new issue
Block a user