Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758065Ab2FQVup (ORCPT ); Sun, 17 Jun 2012 17:50:45 -0400 Received: from gate.crashing.org ([63.228.1.57]:46296 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754329Ab2FQVun (ORCPT ); Sun, 17 Jun 2012 17:50:43 -0400 Message-ID: <1339969775.9220.241.camel@pasglop> Subject: Re: [PATCH 4/5] powerpc: bitops: Introduce {clear,set}_bit_le() From: Benjamin Herrenschmidt To: Takuya Yoshikawa Cc: akpm@linux-foundation.org, bhutchings@solarflare.com, grundler@parisc-linux.org, arnd@arndb.de, avi@redhat.com, mtosatti@redhat.com, linux-net-drivers@solarflare.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kvm@vger.kernel.org, takuya.yoshikawa@gmail.com Date: Mon, 18 Jun 2012 07:49:35 +1000 In-Reply-To: <20120613130438.b1cd04db.yoshikawa.takuya@oss.ntt.co.jp> References: <20120613130054.b5695621.yoshikawa.takuya@oss.ntt.co.jp> <20120613130438.b1cd04db.yoshikawa.takuya@oss.ntt.co.jp> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1384 Lines: 42 On Wed, 2012-06-13 at 13:04 +0900, Takuya Yoshikawa wrote: > From: Takuya Yoshikawa > > Needed to replace test_and_set_bit_le() in virt/kvm/kvm_main.c which is > being used for this missing function. > > Signed-off-by: Takuya Yoshikawa Acked-by: Benjamin Herrenschmidt > --- > arch/powerpc/include/asm/bitops.h | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) > > diff --git a/arch/powerpc/include/asm/bitops.h b/arch/powerpc/include/asm/bitops.h > index efdc926..dc2cf9c 100644 > --- a/arch/powerpc/include/asm/bitops.h > +++ b/arch/powerpc/include/asm/bitops.h > @@ -288,6 +288,16 @@ static __inline__ int test_bit_le(unsigned long nr, > return (tmp[nr >> 3] >> (nr & 7)) & 1; > } > > +static inline void set_bit_le(int nr, void *addr) > +{ > + set_bit(nr ^ BITOP_LE_SWIZZLE, addr); > +} > + > +static inline void clear_bit_le(int nr, void *addr) > +{ > + clear_bit(nr ^ BITOP_LE_SWIZZLE, addr); > +} > + > static inline void __set_bit_le(int nr, void *addr) > { > __set_bit(nr ^ BITOP_LE_SWIZZLE, addr); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/