[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 0/4] ARRAY_SIZE fixups
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH v3 0/4] ARRAY_SIZE fixups |
Date: |
Thu, 19 Jan 2017 23:07:24 +0200 |
Turns out virtio kept using ARRAY_SIZE on fields which stopped
being arrays, this was noticed by a coverity scan.
I fixed this up, this patchset fixes up the ARRAY_SIZE macro so that this
bug does not reappear in any other place.
changes from v2:
- dropped the merged virtio patch
- whitespace changes
- rewrote BUG_ON macros from an array to a struct for portability
Michael S. Tsirkin (4):
compiler: drop ; after BUILD_BUG_ON
compiler: rework BUG_ON using a struct
compiler: expression version of QEMU_BUILD_BUG_ON
ARRAY_SIZE: check that argument is an array
include/qemu/compiler.h | 11 +++++++++--
include/qemu/osdep.h | 9 ++++++++-
2 files changed, 17 insertions(+), 3 deletions(-)
--
MST
- [Qemu-devel] [PATCH v3 0/4] ARRAY_SIZE fixups,
Michael S. Tsirkin <=