From: Keir Fraser Date: Thu, 4 Dec 2008 16:36:43 +0000 (+0000) Subject: docs: Add description of BUILD_BUG_ON(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14037^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=afdfef4b15e045b9cb5a4391f81e5f8bbf20ab68;p=xen.git docs: Add description of BUILD_BUG_ON(). Signed-off-by: Keir Fraser --- diff --git a/docs/misc/xen-error-handling.txt b/docs/misc/xen-error-handling.txt index 61cc67261b..7728787092 100644 --- a/docs/misc/xen-error-handling.txt +++ b/docs/misc/xen-error-handling.txt @@ -79,3 +79,10 @@ interesting. A possible approach to dealing with boot-time errors, rather than crashing the hypervisor. It's particularly appropriate when parsing non-critical BIOS tables and detecting extended hardware features. + + +7. BUILD_BUG_ON() +----------------- +Useful for assertions which can be evaluated at compile time. For +example, making explicit assumptions about size and alignment of C +structures.