projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6b3a93
)
BLOCK: Hide the contents of linux/bio.h if CONFIG_BLOCK=n
author
David Howells
<
[email protected]
>
Sat, 11 Aug 2007 20:34:32 +0000
(22:34 +0200)
committer
Jens Axboe
<
[email protected]
>
Sat, 11 Aug 2007 20:34:49 +0000
(22:34 +0200)
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
patch
|
blob
|
history
diff --git
a/include/linux/bio.h
b/include/linux/bio.h
index 4d85262b4fa4e8a4e9eb984e668f57363fd09183..1ddef34f43c37c3a4153e080fa1c97757fe1ab08 100644
(file)
--- 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 */