lkml.org 
[lkml]   [2003]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.5.67] trivial compile fix for sound/isa/sb/sb16.c

Patch below fixes following compile breakage:

gcc -Wp,-MD,sound/isa/sb/.sbawe.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=athlon
-Iinclude/asm-i386/mach-default -nostdinc -iwithprefix include
-DKBUILD_BASENAME=sbawe -DKBUILD_MODNAME=snd_sbawe -c -o
sound/isa/sb/.tmp_sbawe.o sound/isa/sb/sbawe.c
In file included from sound/isa/sb/sbawe.c:2:
sound/isa/sb/sb16.c: In function `snd_card_sb16_pnp':
sound/isa/sb/sb16.c:334: structure has no member named `resource'
make[3]: *** [sound/isa/sb/sbawe.o] Error 1
make[2]: *** [sound/isa/sb] Error 2
make[1]: *** [sound/isa] Error 2
make: *** [sound] Error 2


John Kim

diff -Nau linux-2.5.67/sound/isa/sb/sb16.c linux-2.5.67-new/sound/isa/sb/sb16.c
--- linux-2.5.67/sound/isa/sb/sb16.c 2003-04-07 13:32:23.000000000 -0400
+++ linux-2.5.67-new/sound/isa/sb/sb16.c 2003-04-08 20:05:25.000000000 -0400
@@ -331,7 +331,7 @@
goto __wt_error;
}
awe_port[dev] = pnp_port_start(pdev, 0);
- snd_printdd("pnp SB16: wavetable port=0x%lx\n", pdev->resource[0].start);
+ snd_printdd("pnp SB16: wavetable port=0x%lx\n", pnp_port_start(pdev, 0));
} else {
__wt_error:
if (pdev) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.017 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site