public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [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

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

On Wed, 2007-08-01 at 10:13 +0100, David Howells wrote:
> 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__ */

Are you sure you're testing with git head?  CONFIG_BLK_DEV_BSG cannot be
set unless CONFIG_BLOCK is (which was a bug in previous releases now
fixed in git head ... unless the fix has gone wrong?).

James



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

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

James Bottomley <James.Bottomley@SteelEye.com> wrote:

> Are you sure you're testing with git head?  CONFIG_BLK_DEV_BSG cannot be
> set unless CONFIG_BLOCK is (which was a bug in previous releases now
> fixed in git head ... unless the fix has gone wrong?).

Neither CONFIG_BLK_DEV_BSG nor CONFIG_BLOCK are set.  The problem is that the
stub BSG functions refer to undefined structures when CONFIG_BLOCK=n.

David

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

* Re: [PATCH] FRV: Make BSG declarations dependent on CONFIG_BLOCK
  2007-08-01 14:44   ` David Howells
@ 2007-08-01 17:30     ` James Bottomley
  0 siblings, 0 replies; 6+ messages in thread
From: James Bottomley @ 2007-08-01 17:30 UTC (permalink / raw)
  To: David Howells; +Cc: torvalds, akpm, jens.axboe, linux-kernel

On Wed, 2007-08-01 at 15:44 +0100, David Howells wrote:
> James Bottomley <James.Bottomley@SteelEye.com> wrote:
> 
> > Are you sure you're testing with git head?  CONFIG_BLK_DEV_BSG cannot be
> > set unless CONFIG_BLOCK is (which was a bug in previous releases now
> > fixed in git head ... unless the fix has gone wrong?).
> 
> Neither CONFIG_BLK_DEV_BSG nor CONFIG_BLOCK are set.  The problem is that the
> stub BSG functions refer to undefined structures when CONFIG_BLOCK=n.

Hmm, then isn't the fix to add a struct request_queue; and other
definitions above the stub functions?

What is the file that's causing this actual problem ... as in what still
needs to pull in the block headers if CONFIG_BLOCK=n (or more properly,
could it also need to use the bsg stub functions?)

James



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

* [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

* Re: [PATCH] FRV: Make BSG declarations dependent on CONFIG_BLOCK
  2007-09-05 15:23 [PATCH] FRV: Make BSG declarations dependent on CONFIG_BLOCK David Howells
@ 2007-09-05 15:56 ` Jens Axboe
  0 siblings, 0 replies; 6+ messages in thread
From: Jens Axboe @ 2007-09-05 15:56 UTC (permalink / raw)
  To: David Howells; +Cc: linux-kernel

On Wed, Sep 05 2007, David Howells wrote:
> 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>

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

-- 
Jens Axboe


^ permalink raw reply	[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