Whamcloud - gitweb
LU-12923 lustre: Replace CLASSERT() with BUILD_BUG_ON()
[fs/lustre-release.git] / lustre / include / lu_object.h
index 80fa26f..6b7f495 100644 (file)
@@ -1116,7 +1116,7 @@ struct lu_context_key {
        {                                                         \
                type *value;                                      \
                                                                   \
-               CLASSERT(PAGE_SIZE >= sizeof(*value));            \
+               BUILD_BUG_ON(PAGE_SIZE < sizeof(*value));         \
                                                                   \
                OBD_ALLOC_PTR(value);                             \
                if (value == NULL)                                \