undefined reference to `__ffs'

Brian T btuch at usa.net
Fri Aug 27 14:04:24 EDT 2004


>
> No, they aren't equivalent.
>
> >From linux/asm-i386/bitops.h in 2.6.8:
>
> /**
>   * __ffs - find first bit in word.
>   * @word: The word to search
>   *
>   * Undefined if no bit exists, so code should check against 0 first.
>   */
> static inline unsigned long __ffs(unsigned long word)
> {
>          __asm__("bsfl %1,%0"
>                  :"=r" (word)
>                  :"rm" (word));
>          return word;
> }
>

Ok,

So MTD is no longer compatable with the current 2.4 tree?  I just unpacked
it and didn't see it in linux/asm-i386/bitops.h .  Am I looking in the wrong
place?

-Brian









More information about the linux-mtd mailing list