From: Takashi Iwai Subject: Re: [PATCH] ALSA: Fix declaration of sound_class Date: Mon, 15 Dec 2008 16:59:56 +0100 Message-ID: References: <1229355823-23640-1-git-send-email-broonie@opensource.wolfsonmicro.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id C66DF1037ED for ; Mon, 15 Dec 2008 16:59:56 +0100 (CET) In-Reply-To: <1229355823-23640-1-git-send-email-broonie@opensource.wolfsonmicro.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 15 Dec 2008 15:43:43 +0000, Mark Brown wrote: > > Include sound/core.h in sound_core.c so that sound_class is declared > before it is defined, avoiding it looking like it should be static. It's a question whether it should be in linux/sound.h or in sound/core.h, but as long as it's declared in the latter file, I think it's OK to included it from sound_core.c although it's not ALSA-specific. So I applied as is. Thanks. Takashi > > Signed-off-by: Mark Brown > --- > sound/sound_core.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/sound/sound_core.c b/sound/sound_core.c > index 10ba421..2b302bb 100644 > --- a/sound/sound_core.c > +++ b/sound/sound_core.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > > #ifdef CONFIG_SOUND_OSS_CORE > static int __init init_oss_soundcore(void); > -- > 1.5.6.5 >