mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] BLOCK: Hide the contents of linux/bio.h if CONFIG_BLOCK=n [try #2]
@ 2007-08-01 17:50 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2007-08-01 17:50 UTC (permalink / raw)
  To: torvalds, akpm, James.Bottomley, jens.axboe; +Cc: linux-kernel, dhowells

From: David Howells <dhowells@redhat.com>

Hide the contents of linux/bio.h if CONFIG_BLOCK=n as there shouldn't be
compiled that uses it.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 include/linux/bio.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/bio.h b/include/linux/bio.h
index 4d85262..1ddef34 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -24,6 +24,8 @@
 #include <linux/mempool.h>
 #include <linux/ioprio.h>
 
+#ifdef CONFIG_BLOCK
+
 /* Platforms may set this to teach the BIO layer about IOMMU hardware. */
 #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))
 #define bio_kunmap_irq(buf,flags)	__bio_kunmap_irq(buf, flags)
 
+#endif /* CONFIG_BLOCK */
 #endif /* __LINUX_BIO_H */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-01 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-01 17:50 [PATCH] BLOCK: Hide the contents of linux/bio.h if CONFIG_BLOCK=n [try #2] David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®