From patchwork Thu Mar 26 15:22:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fred Isaman X-Patchwork-Id: 14572 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2QFnKSj000622 for ; Thu, 26 Mar 2009 15:49:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752532AbZCZPtV (ORCPT ); Thu, 26 Mar 2009 11:49:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756420AbZCZPtV (ORCPT ); Thu, 26 Mar 2009 11:49:21 -0400 Received: from citi.umich.edu ([141.211.133.111]:51685 "EHLO citi.umich.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752532AbZCZPtU (ORCPT ); Thu, 26 Mar 2009 11:49:20 -0400 X-Greylist: delayed 1623 seconds by postgrey-1.27 at vger.kernel.org; Thu, 26 Mar 2009 11:49:20 EDT Received: from localhost.localdomain (jupiter.citi.umich.edu [141.211.133.22]) by citi.umich.edu (Postfix) with ESMTP id 4EC4A25806E; Thu, 26 Mar 2009 11:22:16 -0400 (EDT) From: Fred Isaman To: linux-kbuild@vger.kernel.org Cc: pnfs@linux-nfs.org Subject: [PATCH 1/1] lib: find_next_bit.o needed by a module only, move it from lib to obj Date: Thu, 26 Mar 2009 11:22:16 -0400 Message-Id: <1238080936-4372-1-git-send-email-iisaman@citi.umich.edu> X-Mailer: git-send-email 1.6.0.6 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 --- 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