Add a prototype for ffs() from libgcc.
Instead of using log2 in reisrfs which has a different prototype to the
one libgcc, call the function reiser_log2()
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
#endif /* !_EXT2_HAVE_ASM_SWAB */
#if !defined(_EXT2_HAVE_ASM_FINDBIT_)
+/* Use the prototype from builtin_ffs() */
+extern int ffs(unsigned int);
+
_INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
{
char *cp = (unsigned char *) addr;
static __inline__ __u32
-log2( __u32 word )
+reiserfs_log2( __u32 word )
{
int i = 0;
while( word && (word & (1 << ++i)) == 0 );
INFO->version = le16_to_cpu(super.s_version);
INFO->blocksize = le16_to_cpu(super.s_blocksize);
- INFO->blocksize_shift = log2( INFO->blocksize );
+ INFO->blocksize_shift = reiserfs_log2( INFO->blocksize );
INFO->journal_block = le32_to_cpu(super.s_journal_block);
INFO->journal_block_count = le32_to_cpu(super.s_orig_journal_size);