Commit c295ee47 authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Christoph Hellwig

block: always define struct blk_integrity in genhd.h

This will reduce the amount of ifdefs inside the source code for various
drivers and also will reduce the amount of stub functions that were
created for the !CONFIG_BLK_DEV_INTEGRITY case.
Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Reviewed-by: default avatarIsrael Rukshin <israelr@mellanox.com>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 1f357548
...@@ -169,8 +169,6 @@ struct disk_part_tbl { ...@@ -169,8 +169,6 @@ struct disk_part_tbl {
struct disk_events; struct disk_events;
struct badblocks; struct badblocks;
#if defined(CONFIG_BLK_DEV_INTEGRITY)
struct blk_integrity { struct blk_integrity {
const struct blk_integrity_profile *profile; const struct blk_integrity_profile *profile;
unsigned char flags; unsigned char flags;
...@@ -179,8 +177,6 @@ struct blk_integrity { ...@@ -179,8 +177,6 @@ struct blk_integrity {
unsigned char tag_size; unsigned char tag_size;
}; };
#endif /* CONFIG_BLK_DEV_INTEGRITY */
struct gendisk { struct gendisk {
/* major, first_minor and minors are input parameters only, /* major, first_minor and minors are input parameters only,
* don't use directly. Use disk_devt() and disk_max_parts(). * don't use directly. Use disk_devt() and disk_max_parts().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment