Re: Sound core broken on sparc64 (2.6.4+bk)

From: Takashi Iwai
Date: Mon Mar 15 2004 - 13:17:09 EST


At Mon, 15 Mar 2004 15:46:51 +0200 (EET),
Meelis Roos wrote:
>
> This is today's (20040315) BK snapshot. Sound core is broken on sparc64:
>
> sound/core/memalloc.c: In function `snd_mem_proc_read':
> sound/core/memalloc.c:793: error: `sbus' undeclared (first use in this function)
> sound/core/memalloc.c:793: error: (Each undeclared identifier is reported only once
> sound/core/memalloc.c:793: error: for each function it appears in.)
> sound/core/memalloc.c:792: warning: unused variable `sdev'

the attached patch should fix.


--
Takashi Iwai <tiwai@xxxxxxx> ALSA Developer - www.alsa-project.org
--- linux/sound/core/memalloc.c 6 Mar 2004 16:46:57 -0000 1.28
+++ linux/sound/core/memalloc.c 15 Mar 2004 18:08:32 -0000
@@ -790,7 +790,7 @@
case SNDRV_DMA_TYPE_SBUS:
{
struct sbus_dev *sdev = (struct sbus_dev *)(mem->dev.dev);
- len += sprintf(page + len, "SBUS [%x]", sbus->slot);
+ len += sprintf(page + len, "SBUS [%x]", sdev->slot);
}
break;
#endif