]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa9a6be4b19f14ccf119a012a3450c3bdef70ac3
tree8994f77fbff134f1e138d2fd1e355261d599c76d
parent09c73b8e382aa5e5fe0addbec21a6606006afdda
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