Skip to contentSkip to conversation

CMIPCI

DISCUSSION Lawrence Walton 2 participants 3 messages Jul 24, 2002 – Jul 25, 2002

lore
Share & tools
lore
#0 lore raw

Looks like CMIPCI does not compile right now.

gcc -Wp,-MD,./.cmipci.o.d -D__KERNEL__ -I/usr/src/linux-2.5.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -g -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=cmipci -c -o cmipci.o cmipci.c
cmipci.c:2482: macro synchronize_irq' used without args cmipci.c:2739: warning: snd_cmipci_remove' defined but not used make[2]: *** [cmipci.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.28/sound/pci' make[1]: *** [pci] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.28/sound'
make: *** [sound] Error 2

Signature · 6 lines
*--* Mail: [email protected]
*--* Voice: 425.739.4247
*--* Fax: 425.827.9577
*--* HTTP://www.otak-k.com/~lawrence/
--------------------------------------
- - - - - - O t a k  i n c . - - - - - 
#1 lore raw

In article <[email protected]>,

Quoted 1 line · Lawrence Walton

Looks like CMIPCI does not compile right now.

For "'synchronize_irq()' used without args", you only need to add the irq number as the argument, and it should work. Please test to verify, and send in a patch..

Linus

#2 lore raw
Quoted 9 lines · Linus Torvalds [[email protected]] wrote:

In article <[email protected]>,

Quoted 1 line · Lawrence Walton

Looks like CMIPCI does not compile right now.

For "'synchronize_irq()' used without args", you only need to add the irq number as the argument, and it should work. Please test to verify, and send in a patch..

Linus

Here it is my first LK patch.
tested even. :)

cmipci.c renamed from cmipci.c.orig +1 -1
@@ -2479,7 +2479,7 @@
 		/* reset mixer */
 		snd_cmipci_mixer_write(cm, 0, 0);
 
-		synchronize_irq();
+		synchronize_irq(dev->irq);
 
 		free_irq(cm->irq, (void *)cm);
 	}
Signature · 6 lines
*--* Mail: [email protected]
*--* Voice: 425.739.4247
*--* Fax: 425.827.9577
*--* HTTP://www.otak-k.com/~lawrence/
--------------------------------------
- - - - - - O t a k  i n c . - - - - -