Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=02a5e0acb3cb85d80d0fe834e366d38a92bbaa22
Commit:     02a5e0acb3cb85d80d0fe834e366d38a92bbaa22
Parent:     a6b3a93e15b2925a151e9ae13dcb93ad7b3e48aa
Author:     David Howells <[EMAIL PROTECTED]>
AuthorDate: Sat Aug 11 22:34:32 2007 +0200
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Sat Aug 11 22:34:49 2007 +0200

    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 <[EMAIL PROTECTED]>
    Cc: James Bottomley <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
---
 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 */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to