Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752354Ab0ABCfH (ORCPT ); Fri, 1 Jan 2010 21:35:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752303Ab0ABCfG (ORCPT ); Fri, 1 Jan 2010 21:35:06 -0500 Received: from acsinet11.oracle.com ([141.146.126.233]:54843 "EHLO acsinet11.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752261Ab0ABCfE (ORCPT ); Fri, 1 Jan 2010 21:35:04 -0500 Date: Fri, 1 Jan 2010 18:33:44 -0800 From: Randy Dunlap To: Stephen Rothwell , Phillip Lougher Cc: linux-next@vger.kernel.org, LKML , Michal Marek , akpm Subject: [PATCH -next] libs: force lzma_wrapper to be retained Message-Id: <20100101183344.398f2538.randy.dunlap@oracle.com> In-Reply-To: <20100101120737.94d4acc4.sfr@canb.auug.org.au> References: <20100101120737.94d4acc4.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.12.0; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Source-IP: acsmt358.oracle.com [141.146.40.158] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4B3EB0C3.014A:SCFMA4539814,ss=1,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1224 Lines: 32 From: Randy Dunlap When CONFIG_SQUASHFS=m and CONFIG_DECOMPRESS_LZMA=m, decompress_lzma is built but then discarded from the library because no built-in code uses it, so change it from a lib- to an obj- to force it to be kept in the library. ERROR: "unlzma" [fs/squashfs/squashfs.ko] undefined! Signed-off-by: Randy Dunlap Cc: Phillip Lougher Cc: Michal Marek --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20100101.orig/lib/Makefile +++ linux-next-20100101/lib/Makefile @@ -69,7 +69,7 @@ obj-$(CONFIG_LZO_DECOMPRESS) += lzo/ lib-$(CONFIG_DECOMPRESS_GZIP) += decompress_inflate.o lib-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o -lib-$(CONFIG_DECOMPRESS_LZMA) += decompress_unlzma.o +obj-$(CONFIG_DECOMPRESS_LZMA) += decompress_unlzma.o obj-$(CONFIG_TEXTSEARCH) += textsearch.o obj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/