[PATCH] [POWERPC] Fix build errors when BLOCK=n

Medve Emilian-EMMEDVE1 Emilian.Medve at freescale.com
Tue Sep 18 08:43:22 EST 2007


Hi David,


I've seen you patch earlier, but I'm not trying to solve the BSG related
problem/warnings. That's why I put a reference to an already existing
commit addressing the BSG/bsg.h warnings. I'm trying to address a
slightly different problem in the PowerPC code only.


Cheers,
Emil.


> -----Original Message-----
> From: dhowells at redhat.com [mailto:dhowells at redhat.com] 
> Sent: Monday, September 17, 2007 5:35 PM
> To: Medve Emilian-EMMEDVE1
> Cc: dhowells at redhat.com; paulus at samba.org; Gala Kumar-B11780; 
> linuxppc-dev at ozlabs.org; bzolnier at gmail.com; linux-ide at vger.kernel.org
> Subject: Re: [PATCH] [POWERPC] Fix build errors when BLOCK=n
> 
> 
> Try the attached.
> 
> David
> ---
> [PATCH] VFS: Make BSG declarations dependent on CONFIG_BLOCK
> 
> From: David Howells <dhowells at 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 at 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



More information about the Linuxppc-dev mailing list