#ifndef DM_IMA_H
#define DM_IMA_H
#define DM_IMA_MEASUREMENT_BUF_LEN …
#define DM_IMA_DEVICE_BUF_LEN …
#define DM_IMA_TARGET_METADATA_BUF_LEN …
#define DM_IMA_TARGET_DATA_BUF_LEN …
#define DM_IMA_DEVICE_CAPACITY_BUF_LEN …
#define DM_IMA_TABLE_HASH_ALG …
#define __dm_ima_stringify(s) …
#define __dm_ima_str(s) …
#define DM_IMA_VERSION_STR …
#ifdef CONFIG_IMA
struct dm_ima_device_table_metadata { … };
struct dm_ima_measurements { … };
void dm_ima_reset_data(struct mapped_device *md);
void dm_ima_measure_on_table_load(struct dm_table *table, unsigned int status_flags);
void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap);
void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all);
void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map);
void dm_ima_measure_on_device_rename(struct mapped_device *md);
#else
static inline void dm_ima_reset_data(struct mapped_device *md) {}
static inline void dm_ima_measure_on_table_load(struct dm_table *table, unsigned int status_flags) {}
static inline void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap) {}
static inline void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all) {}
static inline void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) {}
static inline void dm_ima_measure_on_device_rename(struct mapped_device *md) {}
#endif
#endif