From: David Howells Date: Sat, 11 Aug 2007 20:34:32 +0000 (+0200) Subject: BLOCK: Hide the contents of linux/bio.h if CONFIG_BLOCK=n X-Git-Tag: MMI-PSA29.97-13-9~40786^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=02a5e0acb3cb85d80d0fe834e366d38a92bbaa22;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- diff --git a/include/linux/bio.h b/include/linux/bio.h index 4d85262b4fa4..1ddef34f43c3 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -24,6 +24,8 @@ #include #include +#ifdef CONFIG_BLOCK + /* Platforms may set this to teach the BIO layer about IOMMU hardware. */ #include @@ -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 */