Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 18582

Summary: gentoo-sources-2.4.20: cs4281 module has undefined __bad_udelay symbol
Product: Gentoo Linux Reporter: Simon Marlow <simonmar>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Simon Marlow 2003-04-01 07:49:20 UTC
Compiling gentoo-sources-2.4.20 (r1 & r2) with the cs4281 sound module 
enabled, gives a cs4281.o that contains an undefined __bad_udelay symbol.

Digging a bit deeper, this seems to be a bug in the cs4281 driver itself which 
is exposed by compiling with -finline-functions on (the default with -03).  
The function delayus() in this module gets inlined, exposing some calls to 
udelay() with over-long timeouts.

Reproducible: Always
Steps to Reproduce:
1. Configure gentoo-sources-2.4.20 kernel to enable the cs4281 driver
2. Compile it
3. Observe link failure

or, alternatively, compile cs4281 as a module and observe the error when you 
do 'depmod -ae' on the resulting modules.
Actual Results:  
I got a link failure due to an undefined __bad_udelay symbol.


I can work around it by turning the optimisation level in the kernel down to -
O2.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-04-01 08:57:31 UTC

*** This bug has been marked as a duplicate of 18482 ***