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:08:41 +0000 (09:08 -0600)
commit0217e7ffa1593cd0aff862f03cdbfe176e399871
tree9bd405f16cee949a7a8f5f83e5e14b1e350b47fe
parent87227c45f07fe250883363d8dc1c6041e4f97c80
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