Skip to contentSkip to conversation

FRV: Make BSG declarations dependent on CONFIG_BLOCK

PATCH In review David Howells 2 participants 2 messages Sep 5, 2007 BSG (block layer generic sg v4 driver)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FRV: Make BSG declarations dependent on CONFIG_BLOCK

From: David Howells <[email protected]>

Make BSG function declarations dependent on CONFIG_BLOCK as they are not compilable if the block layer is compiled out.

---

 include/linux/bsg.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/bsg.h +2 -0
index 60e377b..28f5d44 100644
@@ -52,6 +52,7 @@ struct sg_io_v4 {
 };
 
 #ifdef __KERNEL__
+#ifdef CONFIG_BLOCK
 
 #if defined(CONFIG_BLK_DEV_BSG)
 struct bsg_class_device {
@@ -73,6 +74,7 @@ static inline void bsg_unregister_queue(struct request_queue *rq)
 }
 #endif
 
+#endif /* CONFIG_BLOCK */
 #endif /* __KERNEL__ */
 
 #endif
#1 lore raw
Quoted 6 lines · David Howells

From: David Howells <[email protected]>

Make BSG function declarations dependent on CONFIG_BLOCK as they are not compilable if the block layer is compiled out.

Thanks David, I did seem to have lost it. Will apply!

Signature · 1 line
Jens Axboe