Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion inc/ocf_prefetch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion src/metadata/metadata_collision.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading