提交 c295ee47 编写于 作者: M Max Gurtovoy 提交者: 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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NMax Gurtovoy <maxg@mellanox.com>
Reviewed-by: NIsrael Rukshin <israelr@mellanox.com>
Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册