block: reduce ifdef CONFIG_BLOCK madness in headers
authorChristoph Hellwig <hch@lst.de>
Sat, 20 Jun 2020 07:16:43 +0000 (09:16 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Jun 2020 15:16:02 +0000 (09:16 -0600)
commit1a4dcfa8bc10d6bf4f94ac20adc2b30a1da72cfd
tree8994f77fbff134f1e138d2fd1e355261d599c76d
parentd2de7ea48d83195ef1310555f1fdd9e8e1bab0d3
block: reduce ifdef CONFIG_BLOCK madness in headers

Large part of bio.h, blkdev.h and genhd.h are under ifdef CONFIG_BLOCK
for no good reason.  Only stub out function that are called from
code that is not dependent on CONFIG_BLOCK and leave the harmless
other declarations around.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bio.h
include/linux/blkdev.h
include/linux/genhd.h