mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 23:18:20 +00:00
BLOCK: Hide the contents of linux/bio.h if CONFIG_BLOCK=n
Hide the contents of linux/bio.h if CONFIG_BLOCK=n as there shouldn't be compiled code that uses it. Signed-off-by: David Howells <dhowells@redhat.com> Cc: James Bottomley <James.Bottomley@steeleye.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
a6b3a93e15
commit
02a5e0acb3
@ -24,6 +24,8 @@
|
|||||||
#include <linux/mempool.h>
|
#include <linux/mempool.h>
|
||||||
#include <linux/ioprio.h>
|
#include <linux/ioprio.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_BLOCK
|
||||||
|
|
||||||
/* Platforms may set this to teach the BIO layer about IOMMU hardware. */
|
/* Platforms may set this to teach the BIO layer about IOMMU hardware. */
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
@ -361,4 +363,5 @@ static inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx,
|
|||||||
__bio_kmap_irq((bio), (bio)->bi_idx, (flags))
|
__bio_kmap_irq((bio), (bio)->bi_idx, (flags))
|
||||||
#define bio_kunmap_irq(buf,flags) __bio_kunmap_irq(buf, flags)
|
#define bio_kunmap_irq(buf,flags) __bio_kunmap_irq(buf, flags)
|
||||||
|
|
||||||
|
#endif /* CONFIG_BLOCK */
|
||||||
#endif /* __LINUX_BIO_H */
|
#endif /* __LINUX_BIO_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user