]> git.baikalelectronics.ru Git - kernel.git/commit
bitops: Move find_next_bit.o from lib-y to obj-y
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 30 Aug 2011 13:17:03 +0000 (15:17 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Aug 2011 17:12:05 +0000 (10:12 -0700)
commitdde182bc25adb44f36fed43196a740a95ac967fa
treef08b51f967d7912ce3b37c6c9230ca2bfde0bd0a
parent6ead49c0a42073a6bbb074595a5ce97223c998a0
bitops: Move find_next_bit.o from lib-y to obj-y

If there are no builtin users of find_next_bit_le() and
find_next_zero_bit_le(), these functions are not present in the kernel
image, causing m68k allmodconfig to fail with:

  ERROR: "find_next_zero_bit_le" [fs/ufs/ufs.ko] undefined!
  ERROR: "find_next_bit_le" [fs/udf/udf.ko] undefined!
  ...

This started to happen after commit 77d226027e3a ("m68k: merge mmu and
non-mmu bitops.h"), as m68k had its own inline versions before.

commit 090b26be6b45 ("arch: remove CONFIG_GENERIC_FIND_{NEXT_BIT,
BIT_LE, LAST_BIT}") added find_last_bit.o to obj-y (so it's always
included), but find_next_bit.o to lib-y (so it gets removed by the
linker if there are no builtin users).

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/Makefile