block: always define struct blk_integrity in genhd.h
authorMax Gurtovoy <maxg@mellanox.com>
Tue, 19 May 2020 14:05:48 +0000 (17:05 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 May 2020 05:12:38 +0000 (07:12 +0200)
commitc295ee4742fda49de598a304ef9a95cf8da6b1f5
tree217d3144c15b359fdde8877d0688acf9ea0c692f
parent1f357548ec79a34e069716716b71194ce8b53e10
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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/genhd.h