diff --git a/inc/ocf_prefetch.h b/inc/ocf_prefetch.h index 89fea8ba..d1538671 100644 --- a/inc/ocf_prefetch.h +++ b/inc/ocf_prefetch.h @@ -21,7 +21,9 @@ typedef enum { typedef uint8_t ocf_pf_mask_t; /* The bitmask must fit all the values of ocf_pf_id_t */ -_Static_assert(OCF_BITWIDTH(ocf_pf_mask_t) >= ocf_pf_num); +_Static_assert(OCF_BITWIDTH(ocf_pf_mask_t) >= ocf_pf_num, + "Not enough bits in ocf_pf_mask_t to store " + "all the values of ocf_pf_id_t enum"); #define OCF_PF_MASK_DEFAULT 0 diff --git a/src/metadata/metadata_collision.h b/src/metadata/metadata_collision.h index 0ba5028e..89a50ec2 100644 --- a/src/metadata/metadata_collision.h +++ b/src/metadata/metadata_collision.h @@ -29,7 +29,8 @@ struct ocf_metadata_list_info { }; /* Keep the struct ocf_metadata_list_info size of 8 bytes */ -_Static_assert(sizeof(struct ocf_metadata_list_info) == sizeof(uint64_t)); +_Static_assert(sizeof(struct ocf_metadata_list_info) == sizeof(uint64_t), + "Size of struct ocf_metadata_list_info is not equal to 8 bytes"); struct ocf_hash_entry { union {