unicorn/qemu/include/qemu
Michael S. Tsirkin 0455644974
ARRAY_SIZE: check that argument is an array
It's a familiar pattern: some code uses ARRAY_SIZE, then refactoring
changes the argument from an array to a pointer to a dynamically
allocated buffer. Code keeps compiling but any ARRAY_SIZE calls now
return the size of the pointer divided by element size.

Let's add build time checks to ARRAY_SIZE before we allow more
of these in the code-base.

Backports commit ed63ec0d22ccdce3b2222d9a514423b7fbba3a0d from qemu
2018-03-02 00:09:51 -05:00
..
atomic.h tcg: Add atomic helpers 2018-02-27 15:57:47 -05:00
bitmap.h memory: RCU ram_list.dirty_memory[] for safe RAM hotplug 2018-02-22 15:38:03 -05:00
bitops.h bitops: Add MAKE_64BIT_MASK macro 2018-02-25 00:30:39 -05:00
bswap.h bswap.h: Document cpu_to_* and *_to_cpu conversion functions 2018-02-25 04:06:28 -05:00
compiler.h compiler: expression version of QEMU_BUILD_BUG_ON 2018-03-02 00:07:33 -05:00
crc32c.h import 2015-08-21 15:04:50 +08:00
cutils.h Clean up decorations and whitespace around header guards 2018-02-25 04:26:02 -05:00
fprintf-fn.h Clean up decorations and whitespace around header guards 2018-02-25 04:26:02 -05:00
host-utils.h qemu/host-utils.h: Reduce the operation count in the fallback ctpop 2018-03-01 18:35:51 -05:00
int128.h tcg: Add atomic128 helpers 2018-02-27 21:43:48 -05:00
log.h tcg: Lower indirect registers in a separate pass 2018-02-25 22:32:28 -05:00
mmap-alloc.h Clean up ill-advised or unusual header guards 2018-02-25 04:22:46 -05:00
module.h cleanup qemu/include/qemu/module.h 2017-01-25 00:20:08 +08:00
osdep.h ARRAY_SIZE: check that argument is an array 2018-03-02 00:09:51 -05:00
queue.h Clean up ill-advised or unusual header guards 2018-02-25 04:22:46 -05:00
range.h range: Replace internal representation of Range 2018-02-25 00:44:36 -05:00
thread-posix.h Clean up ill-advised or unusual header guards 2018-02-25 04:22:46 -05:00
thread-win32.h Clean up ill-advised or unusual header guards 2018-02-25 04:22:46 -05:00
thread.h Clean up ill-advised or unusual header guards 2018-02-25 04:22:46 -05:00
timer.h include: move CPU-related definitions out of qemu-common.h 2018-02-24 00:33:49 -05:00
typedefs.h exec: introduce MemoryRegionCache 2018-03-01 10:50:30 -05:00