[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 06/15] checkpatch: add target_ulong to typelist
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 06/15] checkpatch: add target_ulong to typelist |
Date: |
Tue, 5 Apr 2016 11:50:09 +0200 |
From: Cédric Le Goater <address@hidden>
In some occasions, a patch [1] can start with a hunk containing a
simple type cast. At the time annotate_values() is run, the type is
unknown and the cast type is misinterpreted as a identifier, resulting
in an error if it is followed with a negative value:
ERROR: spaces required around that '-' (ctx:WxV)
It seems complex to catch all possible types in a cast expression. So,
as a fallback solution, let's add some common qemu types to the
typeList array.
[1] http://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg06741.html
Signed-off-by: Cédric Le Goater <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
scripts/checkpatch.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index c26f76e..c9554ba 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -212,6 +212,7 @@ our @typeList = (
qr{${Ident}_t},
qr{${Ident}_handler},
qr{${Ident}_handler_fn},
+ qr{target_(?:u)?long},
);
# This can be modified by sub possible. Since it can be empty, be careful
--
2.5.5
- [Qemu-devel] [PULL 03/15] memory: fix segv on qemu_ram_free(block=0x0), (continued)
- [Qemu-devel] [PULL 03/15] memory: fix segv on qemu_ram_free(block=0x0), Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 01/15] update Linux headers to 4.6, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 05/15] target-i386: assert that KVM_GET/SET_MSRS can set all requested MSRs, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 09/15] char: ensure all clients are in non-blocking mode, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 08/15] char: fix broken EAGAIN retry on OS-X due to errno clobbering, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 10/15] doc/memory: update MMIO section, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 07/15] util: retry getaddrinfo if getting EAI_BADFLAGS with AI_V4MAPPED, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 11/15] nbd: don't request FUA on FLUSH, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 06/15] checkpatch: add target_ulong to typelist,
Paolo Bonzini <=
- [Qemu-devel] [PULL 14/15] nbd: Fix poor debug message, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 12/15] cpus: don't use atomic_read for vm_clock_warp_start, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 13/15] include/qemu/atomic: add compile time asserts, Paolo Bonzini, 2016/04/05
- [Qemu-devel] [PULL 15/15] net: fix missing include of qapi/error.h in netmap.c, Paolo Bonzini, 2016/04/05
- Re: [Qemu-devel] [PULL 00/15] Misc changes for QEMU 2.6.0-rc1, Peter Maydell, 2016/04/05