lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 20 Apr 2011 10:29:42 +1000
From:	Greg Ungerer <gerg@...pgear.com>
To:	Akinobu Mita <akinobu.mita@...il.com>
CC:	<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] m68knommu: use asm-generic/bitops/ext2-atomic.h

Hi Akinobu,

On 17/04/11 23:57, Akinobu Mita wrote:
> m68knommu can use generic implementation of ext2 atomic bitops.
>
> Signed-off-by: Akinobu Mita<akinobu.mita@...il.com>
> Cc: Greg Ungerer<gerg@...inux.org>

That looks good to me, so:

Acked-by: Greg Ungerer<gerg@...inux.org>

Do you want me to add it to the m68knommu git tree,
and pass to Linus in the next merge window?

Regards
Greg


> ---
>   arch/m68k/include/asm/bitops_no.h |   18 +-----------------
>   1 files changed, 1 insertions(+), 17 deletions(-)
>
> diff --git a/arch/m68k/include/asm/bitops_no.h b/arch/m68k/include/asm/bitops_no.h
> index 7d3779f..6b0e2d3 100644
> --- a/arch/m68k/include/asm/bitops_no.h
> +++ b/arch/m68k/include/asm/bitops_no.h
> @@ -246,23 +246,7 @@ static inline int __test_and_clear_bit_le(int nr, volatile void *addr)
>   	return retval;
>   }
>
> -#define ext2_set_bit_atomic(lock, nr, addr)		\
> -	({						\
> -		int ret;				\
> -		spin_lock(lock);			\
> -		ret = __test_and_set_bit_le((nr), (addr));	\
> -		spin_unlock(lock);			\
> -		ret;					\
> -	})
> -
> -#define ext2_clear_bit_atomic(lock, nr, addr)		\
> -	({						\
> -		int ret;				\
> -		spin_lock(lock);			\
> -		ret = __test_and_clear_bit_le((nr), (addr));	\
> -		spin_unlock(lock);			\
> -		ret;					\
> -	})
> +#include<asm-generic/bitops/ext2-atomic.h>
>
>   static inline int test_bit_le(int nr, const volatile void *addr)
>   {


-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@...pgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ