Skip to contentSkip to conversation

linux kernel v2.4.30 bugreport

DISCUSSION Maxim Berezovsky 2 participants 2 messages May 15, 2005

lore
Share & tools
lore
#0 lore raw

[1] .c files containing "#include <linux/delay.h>" do not compiling with make

[2] when I try to compile packages from sources, any file that contains "#include <linux/delay.h> does not compile with make.
make outputs an error just like this:
gcc -D__KERNEL__ -DMODULE=1 -I/home/maxim/download/alsa-driver-1.0.4/include -I/lib/modules/2.4.30/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DKBUILD_BASENAME=cmipci -c -o cmipci.o cmipci.c
In file included from ../alsa-kernel/pci/cmipci.c:29,
from cmipci.c:1:
/lib/modules/2.4.30/build/include/linux/delay.h:57: error: parse error before
"do"
/lib/modules/2.4.30/build/include/linux/delay.h:57: error: parse error before
'(' token
/lib/modules/2.4.30/build/include/linux/delay.h:60: error: parse error before
'(' token

cmipci.c 29 line is:
#include <linux/delay.h>

[3] bash-2.05b$ cat /proc/version
Linux version 2.4.30 (root@diesel) (gcc version 3.3.4) #2 SMP

Signature · 3 lines
Maxim "berry" Berezovsky.
-------------------------
vox emissa volat, litera scripta manet.
#1 lore raw
Quoted 1 line · Maxim Berezovsky

[1] .c files containing "#include <linux/delay.h>" do not compiling with make

(...)

Quoted 2 lines

/lib/modules/2.4.30/build/include/linux/delay.h:57: error: parse error before
"do"

I suspect that your sources were corrupted (wrong patch, or something else), because I don't have anything semblable in delay.h:57 :

57:static inline void msleep(unsigned long msecs)

And my system uses alsa-1.0.9-rc2 on top of 2.4.30 (modified though).

Regards,
Willy