[sheepdog] [PATCH] codestyle: fixed code style errors in include/bitops.h

Liu Yuan namei.unix at gmail.com
Mon Jul 8 07:00:21 CEST 2013


On Sun, Jul 07, 2013 at 09:50:15PM -0700, Kai Zhang wrote:
> Signed-off-by: Kai Zhang <kyle at zelin.io>
> ---
>  include/bitops.h |   10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/include/bitops.h b/include/bitops.h
> index 358c402..57316ac 100644
> --- a/include/bitops.h
> +++ b/include/bitops.h
> @@ -17,8 +17,9 @@
>  
>  #define BITOP_WORD(nr)		((nr) / BITS_PER_LONG)
>  
> -static inline unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size,
> -				 unsigned long offset)
> +static inline unsigned long find_next_zero_bit(const unsigned long *addr,
> +					       unsigned long size,
> +					       unsigned long offset)
>  {
>  	const unsigned long *p = addr + BITOP_WORD(offset);
>  	unsigned long result = offset & ~(BITS_PER_LONG-1);
> @@ -57,8 +58,9 @@ found_middle:
>  	return result + ffz(tmp);
>  }
>  
> -static inline unsigned long find_next_bit(const unsigned long *addr, unsigned long size,
> -			    unsigned long offset)
> +static inline unsigned long find_next_bit(const unsigned long *addr,
> +					  unsigned long size,
> +					  unsigned long offset)
>  {
>  	const unsigned long *p = addr + BITOP_WORD(offset);
>  	unsigned long result = offset & ~(BITS_PER_LONG-1);

Applied thanks

Yuan



More information about the sheepdog mailing list