From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754769Ab1G2Fzj (ORCPT ); Fri, 29 Jul 2011 01:55:39 -0400 Received: from cantor2.suse.de ([195.135.220.15]:45583 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753436Ab1G2Fzi (ORCPT ); Fri, 29 Jul 2011 01:55:38 -0400 Date: Fri, 29 Jul 2011 07:55:36 +0200 Message-ID: From: Takashi Iwai To: Ralf Baechle Cc: Jaroslav Kysela , Liam Girdwood , Atsushi Nemoto , Mark Brown , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: Re: [PATCH] SOUND: Fix txx9aclc.c build In-Reply-To: <20110728112616.GA27918@linux-mips.org> References: <20110728112616.GA27918@linux-mips.org> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Thu, 28 Jul 2011 12:26:16 +0100, Ralf Baechle wrote: > > 552d1ef6b5a98d7b95959d5b139071e3c90cebf1 [ASoC: core - Optimise and refactor > pcm_new() to pass only rtd] breaks compilation of txx9aclc.c: > > CC [M] sound/soc/txx9/txx9aclc.o > /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c: In function 'txx9aclc_pcm_new': > /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: error: 'card' undeclared (first use in this function) > /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: note: each undeclared identifier is reported only once for each function it appears in > make[5]: *** [sound/soc/txx9/txx9aclc.o] Error 1 > > Fixed by providing a definition for card. > > Signed-off-by: Ralf Baechle Thanks, I applied now to fix/asoc branch of sound git tree. Takashi > > sound/soc/txx9/txx9aclc.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c > index 34aa972..3de99af 100644 > --- a/sound/soc/txx9/txx9aclc.c > +++ b/sound/soc/txx9/txx9aclc.c > @@ -290,6 +290,7 @@ static void txx9aclc_pcm_free_dma_buffers(struct snd_pcm *pcm) > > static int txx9aclc_pcm_new(struct snd_soc_pcm_runtime *rtd) > { > + struct snd_card *card = rtd->card->snd_card; > struct snd_soc_dai *dai = rtd->cpu_dai; > struct snd_pcm *pcm = rtd->pcm; > struct platform_device *pdev = to_platform_device(dai->platform->dev); >