vmstate-static-checker: fix size mismatch detection in unused fields
authorAmit Shah <amit.shah@redhat.com>
Fri, 17 Jun 2016 12:16:39 +0000 (17:46 +0530)
committerAmit Shah <amit.shah@redhat.com>
Fri, 17 Jun 2016 12:54:33 +0000 (18:24 +0530)
commit0794d8895ef8d1bd6db528e5d9ca19b86297803b
treec66f57ee59521bbff2cf581bf8bb6c6c926cd5ef
parent0d9f9a5c5237c7c9241b38769a2d06959c943f8b
vmstate-static-checker: fix size mismatch detection in unused fields

If a field changed from something to unused, the checker wasn't flagging
if the field size mismatched.  This was noticed in:

http://thread.gmane.org/gmane.comp.emulators.qemu/419802

where the 4->1 size change along with field name change to 'unused'
wasn't being flagged.  Fix this.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Message-Id: <d7ec03a9b2edfa0616764887a51ba8f64fdd3f68.1466165736.git.amit.shah@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
scripts/vmstate-static-checker.py