public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] FRV: Make BSG declarations dependent on CONFIG_BLOCK
@ 2007-09-05 15:23 David Howells
  2007-09-05 15:56 ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: David Howells @ 2007-09-05 15:23 UTC (permalink / raw)
  To: jens.axboe; +Cc: dhowells, linux-kernel

From: David Howells <dhowells@redhat.com>

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

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

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

diff --git a/include/linux/bsg.h b/include/linux/bsg.h
index 60e377b..28f5d44 100644
--- a/include/linux/bsg.h
+++ b/include/linux/bsg.h
@@ -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


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] FRV: Make BSG declarations dependent on CONFIG_BLOCK
@ 2007-08-01  9:13 David Howells
  2007-08-01 13:57 ` James Bottomley
  0 siblings, 1 reply; 6+ messages in thread
From: David Howells @ 2007-08-01  9:13 UTC (permalink / raw)
  To: torvalds, akpm, James.Bottomley, jens.axboe; +Cc: linux-kernel, dhowells

From: David Howells <dhowells@redhat.com>

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

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

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

diff --git a/include/linux/bsg.h b/include/linux/bsg.h
index 102dc09..e917c41 100644
--- a/include/linux/bsg.h
+++ b/include/linux/bsg.h
@@ -47,6 +47,7 @@ struct sg_io_v4 {
 };
 
 #ifdef __KERNEL__
+#ifdef CONFIG_BLOCK
 
 #if defined(CONFIG_BLK_DEV_BSG)
 struct bsg_class_device {
@@ -68,6 +69,7 @@ static inline void bsg_unregister_queue(struct request_queue *rq)
 }
 #endif
 
+#endif /* CONFIG_BLOCK */
 #endif /* __KERNEL__ */
 
 #endif


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-09-05 16:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-05 15:23 [PATCH] FRV: Make BSG declarations dependent on CONFIG_BLOCK David Howells
2007-09-05 15:56 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2007-08-01  9:13 David Howells
2007-08-01 13:57 ` James Bottomley
2007-08-01 14:44   ` David Howells
2007-08-01 17:30     ` James Bottomley

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