lib: find_last_bit.o needed by a module only, move it from lib to obj
authorFred Isaman <iisaman@citi.umich.edu>
Thu, 23 Apr 2009 13:40:32 +0000 (16:40 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Apr 2009 20:28:31 +0000 (13:28 -0700)
commita5422a5111811401f7756345e4c237ff06cf6d1e
tree4744be4aba038150cd36f8ddcd2cf1e9ae9d8ab5
parent91ac033d8377552d3654501a105ab55bf546940e
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>
lib/Makefile