Bug 9669

Summary: __you_cannot_kmalloc_that_much with gcc 3.2
Product: Memory Management Reporter: Adrian Bunk (bunk)
Component: Slab AllocatorAssignee: Jean Delvare (jdelvare)
Status: RESOLVED CODE_FIX    
Severity: normal CC: clameter, penberg, randy.dunlap
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.24-rc6 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: .config used
Proposed workaround

Description Adrian Bunk 2008-01-01 05:18:09 UTC
With both 2.6.23 and 2.6.24-rc6 I'm getting the following compile error with gcc 3.2.3 (no problem with gcc 3.3):

<--  snip  -->

...
  LD      .tmp_vmlinux1
drivers/built-in.o: In function `dmi_id_init':
dmi-id.c:(.init.text+0x709e): undefined reference to `__you_cannot_kmalloc_that_much'
sound/built-in.o: In function `snd_mixer_oss_build_input':
mixer_oss.c:(.text+0x18a15): undefined reference to `__you_cannot_kmalloc_that_much'
make: *** [.tmp_vmlinux1] Error 1

<--  snip  -->
Comment 1 Adrian Bunk 2008-01-01 05:18:50 UTC
Created attachment 14245 [details]
.config used
Comment 2 Jean Delvare 2008-01-08 04:55:46 UTC
Created attachment 14359 [details]
Proposed workaround

This is the same patch as I just posted to LKML.