From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755570AbYELVqS (ORCPT ); Mon, 12 May 2008 17:46:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751680AbYELVqA (ORCPT ); Mon, 12 May 2008 17:46:00 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:56639 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751819AbYELVp7 (ORCPT ); Mon, 12 May 2008 17:45:59 -0400 Date: Mon, 12 May 2008 14:45:07 -0700 From: Andrew Morton To: =?ISO-8859-1?Q?=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F?= =?ISO-8859-1?Q?=5F=5F_=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F_=5F=5F?= =?ISO-8859-1?Q?=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F?= Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] asm-generic/bitops/fls64.h Message-Id: <20080512144507.8d770723.akpm@linux-foundation.org> In-Reply-To: <481E076A.8060302@protei.ru> References: <481E076A.8060302@protei.ru> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 04 May 2008 22:58:50 +0400 ____________________ ______________ ____________________ wrote: > bugfix in fls64 on a big endian systems(against 2.6.25). > > Signed-off-by: Nickolay Vinogradov > > -- > > diff --git a/include/asm-generic/bitops/fls64.h > b/include/asm-generic/bitops/fls64.h > index 1b6b17c..2eedb6f 100644 > --- a/include/asm-generic/bitops/fls64.h > +++ b/include/asm-generic/bitops/fls64.h > @@ -8,7 +8,7 @@ static inline int fls64(__u64 x) > __u32 h = x >> 32; > if (h) > return fls(h) + 32; > - return fls(x); > + return fls((__u32)x); > } > > #endif /* _ASM_GENERIC_BITOPS_FLS64_H_ */ Please describe the bug which you are fixing? Perhaps a more robust fix to would be to repair fls() so that it works correctly when passed a u64. Perhaps.