From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Date: Mon, 04 Jul 2011 09:23:41 -0500 Subject: [U-Boot] [PATCH 3/6] arm: add __ilog2 function In-Reply-To: <20110704101341.20A3715794D5@gemini.denx.de> References: <1309275583-11763-1-git-send-email-robherring2@gmail.com> <1309275583-11763-4-git-send-email-robherring2@gmail.com> <20110704101341.20A3715794D5@gemini.denx.de> Message-ID: <4E11CCED.4060702@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang, On 07/04/2011 05:13 AM, Wolfgang Denk wrote: > Dear Rob Herring, > > In message <1309275583-11763-4-git-send-email-robherring2@gmail.com> you wrote: >> From: Rob Herring >> >> Add __ilog2 function for ARM. Needed for ahci.c >> >> Signed-off-by: Rob Herring >> Cc: Albert ARIBAUD >> --- >> arch/arm/include/asm/bitops.h | 9 +++++++++ >> 1 files changed, 9 insertions(+), 0 deletions(-) >> >> diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h >> index 270f163..0420182 100644 >> --- a/arch/arm/include/asm/bitops.h >> +++ b/arch/arm/include/asm/bitops.h >> @@ -106,6 +106,15 @@ static inline int test_bit(int nr, const void * addr) >> return ((unsigned char *) addr)[nr >> 3] & (1U << (nr & 7)); >> } >> >> +extern __inline__ int __ilog2(unsigned int x) > > checkpatch says: WARNING: plain inline is preferred over __inline__ > Sorry about this. I thought I was running checkpatch, but there was a problem in my script I used and it was failing silently. Rob