]> xenbits.xensource.com Git - people/iwj/xen.git/commit
tools: Move ARRAY_SIZE() into xen-tools/libs.h
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Jul 2018 13:32:31 +0000 (14:32 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Jul 2018 16:25:37 +0000 (17:25 +0100)
commite1b7eb92d3ec6ce3ca68cffb36a148eb59f59613
treee729ce36ab8de651edfe94fbd4aa793902eeda32
parent8674b02374f6807c12a7cd275f0d3c2f9fbff2bf
tools: Move ARRAY_SIZE() into xen-tools/libs.h

xen-tools/libs.h currently contains a shared BUILD_BUG_ON() implementation and
is used by some tools.  Extend this to include ARRAY_SIZE and clean up all the
opencoding.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
16 files changed:
tools/include/xen-tools/libs.h
tools/libxc/xc_private.h
tools/libxl/libxl_internal.h
tools/misc/xen-cpuid.c
tools/misc/xen-diag.c
tools/misc/xen-hptool.c
tools/misc/xen-livepatch.c
tools/misc/xen-mfndump.c
tools/misc/xenpm.c
tools/python/xen/lowlevel/xc/xc.c
tools/tests/vhpet/emul.h
tools/tests/x86_emulator/x86-emulate.h
tools/tests/xen-access/xen-access.c
tools/tests/xenstore/xs-test.c
tools/xenstore/utils.h
tools/xentrace/analyze.h