Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 171d809df189 ("m68k: merge mmu and
non-mmu bitops.h"), as m68k had its own inline versions before.

commit 63e424c84429 ("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>

authored by

Geert Uytterhoeven and committed by
Linus Torvalds
bd823821 90e93648

+2 -2
+2 -2
lib/Makefile
··· 12 12 idr.o int_sqrt.o extable.o prio_tree.o \ 13 13 sha1.o md5.o irq_regs.o reciprocal_div.o argv_split.o \ 14 14 proportions.o prio_heap.o ratelimit.o show_mem.o \ 15 - is_single_threaded.o plist.o decompress.o find_next_bit.o 15 + is_single_threaded.o plist.o decompress.o 16 16 17 17 lib-$(CONFIG_MMU) += ioremap.o 18 18 lib-$(CONFIG_SMP) += cpumask.o ··· 22 22 obj-y += bcd.o div64.o sort.o parser.o halfmd4.o debug_locks.o random32.o \ 23 23 bust_spinlocks.o hexdump.o kasprintf.o bitmap.o scatterlist.o \ 24 24 string_helpers.o gcd.o lcm.o list_sort.o uuid.o flex_array.o \ 25 - bsearch.o find_last_bit.o 25 + bsearch.o find_last_bit.o find_next_bit.o 26 26 obj-y += kstrtox.o 27 27 obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o 28 28