|
@@ -30,6 +30,13 @@ struct pt_regs;
|
|
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
|
|
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
|
|
#define BUILD_BUG_ON_NULL(e) ((void *)sizeof(struct { int:-!!(e); }))
|
|
#define BUILD_BUG_ON_NULL(e) ((void *)sizeof(struct { int:-!!(e); }))
|
|
|
|
|
|
|
|
+/*
|
|
|
|
+ * BUILD_BUG_ON_INVALID() permits the compiler to check the validity of the
|
|
|
|
+ * expression but avoids the generation of any code, even if that expression
|
|
|
|
+ * has side-effects.
|
|
|
|
+ */
|
|
|
|
+#define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* BUILD_BUG_ON - break compile if a condition is true.
|
|
* BUILD_BUG_ON - break compile if a condition is true.
|
|
* @condition: the condition which the compiler should know is false.
|
|
* @condition: the condition which the compiler should know is false.
|