lib: statically link find_last_bit
PATCH 1/1 lib: statically link find_last_bit
Currently, the only use of find_last_bit in the kernel is setup_nr_cpu_ids which compiles only under CONFIG_SMP. On uniprocessor machines the linker can't find it when needed in a loadable module.
Kernel: arch/x86/boot/bzImage is ready (#5)
Building modules, stage 2.
MODPOST 515 modules
ERROR: "find_last_bit" [fs/nfs/nfs.ko] undefined!
Cc Fredric Isaman <[email protected]>
Signed-off-by Benny Halevy <[email protected]>
---
patch required for the nfs41 series
lib/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/Makefile +1 -1
@@ -37,7 +37,7 @@ lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o lib-$(CONFIG_GENERIC_FIND_FIRST_BIT) += find_next_bit.o lib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o -lib-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.o +obj-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.o obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o obj-$(CONFIG_LOCK_KERNEL) += kernel_lock.o obj-$(CONFIG_PLIST) += plist.o
Signature · 1 line
1.6.2.1