]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix CTASSERT issue in a more clean way
authorngie <ngie@FreeBSD.org>
Wed, 6 Jul 2016 16:02:15 +0000 (16:02 +0000)
committerngie <ngie@FreeBSD.org>
Wed, 6 Jul 2016 16:02:15 +0000 (16:02 +0000)
commitb64ddb3c60b79359e9b0a27448021c6d5236f132
tree30e081d3cc60beea0b41cc8887a4d8a256918bc5
parent89d01c24d15d07f044ec78b4f662e6df23069c91
Fix CTASSERT issue in a more clean way

- Replace all CTASSERT macro instances with static_assert's.
- Remove the WRAPPED_CTASSERT macro; it's now an unnecessary obfuscation.
- Localize all static_assert's to the structures being tested.
- Sort some headers per-style(9).

Approved by: re (hrs)
Differential Revision: https://reviews.freebsd.org/D7130
MFC after: 1 week
X-MFC with: r302364
Reviewed by: ed, grehan (maintainer)
Submitted by: ed
Sponsored by: EMC / Isilon Storage Division
usr.sbin/bhyve/bhyverun.h
usr.sbin/bhyve/pci_emul.c
usr.sbin/bhyve/pci_emul.h
usr.sbin/bhyve/task_switch.c