freebsd-skq/sys
Bjoern A. Zeeb dddba71dc7 Add the new compile-time assertion macro CTASSERT_EQUAL().
It takes a positive integer constant (the expected value) and
another positive integer, usually compile-time evaluated,
e.g. CTASSERT_EQUAL(FOO_EXPECTED_SIZE, sizeof (struct foo));

While the classic CTASSERT() gives:
 error: size of array '__assert60' is negative
this gives you:
 In function '__ctassert_equal_at_line_60':
 warning: '__expected_42_but_got[464ul]' is used uninitialized in this function
and you can directly see the difference in the expected and the
real value.

CTASSERT_EQUAL() needs special compile time options to trigger
thus keep it locally to this header. If it proves to be of general
interest it can be moved to systm.h.

Submitted by:	jmallett
Reviewed by:	sam, warner, rwatson, jmallett (earlier versions)
2009-03-01 09:35:41 +00:00
..
amd64 Fix typo in comments in r189023. 2009-02-25 22:24:56 +00:00
arm Move to new usb stack that puts the front-end bus attachments with the 2009-02-27 23:12:28 +00:00
boot Fix some more issues with the real mode BTX. 2009-02-24 23:11:15 +00:00
bsm Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, both 2009-01-14 10:44:16 +00:00
cam GCC attacks! 2009-02-16 18:02:32 +00:00
cddl Add memmove() to the kernel, making the kernel compile with Clang. 2009-02-28 16:21:25 +00:00
compat For all files including net/vnet.h directly include opt_route.h and 2009-02-27 14:12:05 +00:00
conf Add memmove() to the kernel, making the kernel compile with Clang. 2009-02-28 16:21:25 +00:00
contrib For all files including net/vnet.h directly include opt_route.h and 2009-02-27 14:12:05 +00:00
crypto identify routine takes driver_t *, not device_t *. 2009-02-05 19:30:28 +00:00
ddb Collect N identical (or near identical) mkdumpheader() implementations into 2008-10-01 22:08:53 +00:00
dev Revert my ata_identify()/ata_reinit() related changes: r189166, r189091 2009-02-28 22:07:15 +00:00
fs - Hold a reference on the cdev a filesystem is mounted from in the mount. 2009-02-27 20:00:15 +00:00
gdb
geom o When creating the EBR scheme, set the number of entries 2009-02-21 19:25:13 +00:00
gnu Add memmove() to the kernel, making the kernel compile with Clang. 2009-02-28 16:21:25 +00:00
i386 Fix typo in comments in r189023. 2009-02-25 22:24:56 +00:00
ia64 Change over the usb kernel options to the new stack (retaining existing 2009-02-23 18:34:56 +00:00
isa Allow device hints to wire the unit numbers of devices. 2008-11-18 21:01:54 +00:00
kern Move the NORELEASE check to after the recurse count decrement and bailout, this 2009-02-28 19:10:43 +00:00
kgssapi Call svc_freereq() before returning from the service proc. 2008-11-12 15:31:05 +00:00
legacy/dev This copy of usbdevs is unused. 2009-02-24 17:26:37 +00:00
libkern Add memmove() to the kernel, making the kernel compile with Clang. 2009-02-28 16:21:25 +00:00
mips It appears that none of the contents of this file are necessary, so 2009-02-15 20:05:13 +00:00
modules Move the uaudio and ata-usb drivers into their correct locations. 2009-02-23 21:19:18 +00:00
net For all files including net/vnet.h directly include opt_route.h and 2009-02-27 14:12:05 +00:00
net80211 Add memmove() to the kernel, making the kernel compile with Clang. 2009-02-28 16:21:25 +00:00
netatalk Remove local variable 'ddp' from DDP's attach and detach routines; they 2009-02-04 20:04:32 +00:00
netgraph Add memmove() to the kernel, making the kernel compile with Clang. 2009-02-28 16:21:25 +00:00
netinet Remove unreachable code for generating RST segments from tcp_twcheck(); 2009-02-28 22:58:52 +00:00
netinet6 For all files including net/vnet.h directly include opt_route.h and 2009-02-27 14:12:05 +00:00
netipsec For all files including net/vnet.h directly include opt_route.h and 2009-02-27 14:12:05 +00:00
netipx Add missing "goto set_head" for SO_IPX_CHECKSUM; otherwise we fall through 2008-12-11 10:29:35 +00:00
netnatm Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netncp Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netsmb Implement device cloning for /dev/nsmb, the netsmb control pseudo-device. 2008-11-03 14:23:15 +00:00
nfs
nfs4client Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nfsclient For all files including net/vnet.h directly include opt_route.h and 2009-02-27 14:12:05 +00:00
nfsserver Include audit.h so that the system call path protected by NFS_LEGACYRPC 2009-02-23 23:04:15 +00:00
nlm Don't call svc_freereq() before svc_freeargs(). 2008-11-12 15:30:30 +00:00
opencrypto Fix return type for detach routine (should be int) 2009-02-05 17:43:12 +00:00
pc98 Change over the usb kernel options to the new stack (retaining existing 2009-02-23 18:34:56 +00:00
pci Allocating 2 MSI messages do not seem to work on certain controllers 2009-02-11 00:23:56 +00:00
powerpc Add memmove() to the kernel, making the kernel compile with Clang. 2009-02-28 16:21:25 +00:00
rpc Use the correct creds when reconnecting so that we have enough privilege to 2009-02-05 11:48:10 +00:00
security Use vm_map_entry_t instead of explicit struct vm_map_entry *. 2009-02-24 20:27:48 +00:00
sparc64 Change over the usb kernel options to the new stack (retaining existing 2009-02-23 18:34:56 +00:00
sun4v Change over the usb kernel options to the new stack (retaining existing 2009-02-23 18:34:56 +00:00
sys Add the new compile-time assertion macro CTASSERT_EQUAL(). 2009-03-01 09:35:41 +00:00
tools Remove some unused and broken code that attempted to not invoke locking 2008-11-03 19:57:40 +00:00
ufs Right now, when trying to unmount a device that's already gone, 2009-02-23 21:09:28 +00:00
vm Prior to r188331 a map entry's last read offset was only updated by a hard 2009-02-25 07:52:53 +00:00
xdr Add memmove() to the kernel, making the kernel compile with Clang. 2009-02-28 16:21:25 +00:00
xen merge 186535, 186537, and 186538 from releng_7_xen 2008-12-29 06:31:03 +00:00
Makefile Removal pccard directory requires removing it from the list of things 2009-02-15 18:19:24 +00:00