* [PATCH 1/1] lib: find_next_bit.o needed by a module only, move it from lib to obj
@ 2009-03-26 15:22 Fred Isaman
0 siblings, 0 replies; only message in thread
From: Fred Isaman @ 2009-03-26 15:22 UTC (permalink / raw)
To: linux-kbuild; +Cc: pnfs
It is possible to configure the kernel such that find_next_bit is
referenced only by modules, causing linking to fail with
ERROR: "find_last_bit" [fs/nfs/nfs.ko] undefined!
Signed-off-by: Fred Isaman <iisaman@citi.umich.edu>
---
lib/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/Makefile b/lib/Makefile
index 32b0e64..286e2f7 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -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
--
1.6.0.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-26 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-26 15:22 [PATCH 1/1] lib: find_next_bit.o needed by a module only, move it from lib to obj Fred Isaman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).