Skip to content

Commit a5422a5

Browse files
Fred Isamantorvalds
authored andcommitted
lib: find_last_bit.o needed by a module only, move it from lib to obj
Currently, although find_last_bit is EXPORTed, it is statically linked with the kernel and is referenced only under CONFIG_SMP. When CONFIG_SMP is undefined and find_last_bit is referenced only by modules, linking fails with: ERROR: "find_last_bit" [fs/nfs/nfs.ko] undefined! Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Fred Isaman <iisaman@citi.umich.edu> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 91ac033 commit a5422a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
3838
lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
3939
lib-$(CONFIG_GENERIC_FIND_FIRST_BIT) += find_next_bit.o
4040
lib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o
41-
lib-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.o
41+
obj-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.o
4242
obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
4343
obj-$(CONFIG_LOCK_KERNEL) += kernel_lock.o
4444
obj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o

0 commit comments

Comments
 (0)