Patchworkβ [-next] kmemleak: fix kconfig for crc32 build error

login
register
about
Submitter Randy Dunlap
Date 2009-11-06 23:33:45
Message ID <4AF4B259.8030506@oracle.com>
Download mbox | patch
Permalink /patch/58196/
State New
Headers show

Comments

Catalin Marinas - 2009-11-06 23:12:30
On Fri, 2009-11-06 at 15:33 -0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> kmemleak uses crc32 functions so it needs to select CRC32.
> Fixes build error:
> 
> kmemleak.c:(.text+0x7ce62): undefined reference to `crc32_le'

Thanks for the patch. I'll included it in my kmemleak branch.
Randy Dunlap - 2009-11-06 23:33:45
From: Randy Dunlap <randy.dunlap@oracle.com>

kmemleak uses crc32 functions so it needs to select CRC32.
Fixes build error:

kmemleak.c:(.text+0x7ce62): undefined reference to `crc32_le'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
---
 lib/Kconfig.debug |    1 +
 1 file changed, 1 insertion(+)

--
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/

Patch

--- linux-next-20091106.orig/lib/Kconfig.debug
+++ linux-next-20091106/lib/Kconfig.debug
@@ -372,6 +372,7 @@  config DEBUG_KMEMLEAK
 	select DEBUG_FS if SYSFS
 	select STACKTRACE if STACKTRACE_SUPPORT
 	select KALLSYMS
+	select CRC32
 	help
 	  Say Y here if you want to enable the memory leak
 	  detector. The memory allocation/freeing is traced in a way