mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* BUG, trident.c doesn't compile in 2.5.31
@ 2002-08-24  1:06 Martin Köbele
  2002-08-24  6:07 ` Muli Ben-Yehuda
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Köbele @ 2002-08-24  1:06 UTC (permalink / raw)
  To: linux-kernel

hi, couldn't find a bug report in the archive.
I tried to compile the kernel with the trident-support in OSS.

I got this message:


make[2]: Wechsel in das Verzeichnis Verzeichnis 
»/usr/src/linux-2.5.31/sound/oss«
  gcc -Wp,-MD,./.trident.o.d -D__KERNEL__ -I/usr/src/linux-2.5.31/include 
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
-march=i686 -malign-functions=4  -nostdinc -iwithprefix include -DMODULE 
-include /usr/src/linux-2.5.31/include/linux/modversions.h   
-DKBUILD_BASENAME=trident   -c -o trident.o trident.c
trident.c:2153: macro `synchronize_irq' used without args
trident.c:2160: macro `synchronize_irq' used without args
make[2]: *** [trident.o] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/src/linux-2.5.31/sound/oss«
make[1]: *** [oss] Fehler 2
make[1]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/src/linux-2.5.31/sound«
make: *** [sound] Fehler 2


Martin Koebele

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG, trident.c doesn't compile in 2.5.31
  2002-08-24  1:06 BUG, trident.c doesn't compile in 2.5.31 Martin Köbele
@ 2002-08-24  6:07 ` Muli Ben-Yehuda
  0 siblings, 0 replies; 2+ messages in thread
From: Muli Ben-Yehuda @ 2002-08-24  6:07 UTC (permalink / raw)
  To: Martin K?bele; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2592 bytes --]

On Fri, Aug 23, 2002 at 09:06:05PM -0400, Martin K?bele wrote:
> hi, couldn't find a bug report in the archive.
> I tried to compile the kernel with the trident-support in OSS.
> 
> I got this message:
> 
> 
> make[2]: Wechsel in das Verzeichnis Verzeichnis 
> ?/usr/src/linux-2.5.31/sound/oss?
>   gcc -Wp,-MD,./.trident.o.d -D__KERNEL__ -I/usr/src/linux-2.5.31/include 
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
> -march=i686 -malign-functions=4  -nostdinc -iwithprefix include -DMODULE 
> -include /usr/src/linux-2.5.31/include/linux/modversions.h   
> -DKBUILD_BASENAME=trident   -c -o trident.o trident.c
> trident.c:2153: macro `synchronize_irq' used without args
> trident.c:2160: macro `synchronize_irq' used without args
> make[2]: *** [trident.o] Fehler 1
> make[2]: Verlassen des Verzeichnisses Verzeichnis 
> ?/usr/src/linux-2.5.31/sound/oss?
> make[1]: *** [oss] Fehler 2
> make[1]: Verlassen des Verzeichnisses Verzeichnis 
> ?/usr/src/linux-2.5.31/sound?
> make: *** [sound] Fehler 2

here's a patch to fix it, which I've sent to rusty's trivial patch
monkey and should make it to a kernel near you. 

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.488   -> 1.489  
#	 sound/oss/trident.c	1.25    -> 1.26   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/08/17	mulix@alhambra.merseine.nu	1.489
# fix synchronize_irq which now takes an 'irq' argument. 
# --------------------------------------------
#
diff -Nru a/sound/oss/trident.c b/sound/oss/trident.c
--- a/sound/oss/trident.c	Sat Aug 17 11:13:34 2002
+++ b/sound/oss/trident.c	Sat Aug 17 11:13:34 2002
@@ -2150,14 +2150,14 @@
 		/* FIXME: spin_lock ? */
 		if (file->f_mode & FMODE_WRITE) {
 			stop_dac(state);
-			synchronize_irq();
+			synchronize_irq(card->irq);
 			dmabuf->ready = 0;
 			dmabuf->swptr = dmabuf->hwptr = 0;
 			dmabuf->count = dmabuf->total_bytes = 0;
 		}
 		if (file->f_mode & FMODE_READ) {
 			stop_adc(state);
-			synchronize_irq();
+			synchronize_irq(card->irq);
 			dmabuf->ready = 0;
 			dmabuf->swptr = dmabuf->hwptr = 0;
 			dmabuf->count = dmabuf->total_bytes = 0;
-- 
calm down, it's *only* ones and zeros. 

http://syscalltrack.sf.net/
http://vipe.technion.ac.il/~mulix/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-24  6:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-24  1:06 BUG, trident.c doesn't compile in 2.5.31 Martin Köbele
2002-08-24  6:07 ` Muli Ben-Yehuda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®