From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Triplett Subject: Re: [PATCH 3/3] sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c Date: Fri, 7 Feb 2014 09:23:42 -0800 Message-ID: <20140207172341.GD7298@jtriplet-mobl1> References: <512472c7d96cf1c239ba3d0bc517891a7c2f9da1.1391791103.git.rashika.kheria@gmail.com> <3c35e9b980ccc0ca155214e8fad0dae24b20c5af.1391791103.git.rashika.kheria@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <3c35e9b980ccc0ca155214e8fad0dae24b20c5af.1391791103.git.rashika.kheria@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Rashika Kheria Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Fri, Feb 07, 2014 at 10:16:31PM +0530, Rashika Kheria wrote: > Move prototype declaration of function to header file oss/pas2.h > from oss/pas2_card.c because it is used by more than one file. >=20 > This eliminates the following warnings in oss/pas2_mixer.c: > sound/oss/pas2_mixer.c:62:1: warning: no previous prototype for =E2=80= =98mix_write=E2=80=99 [-Wmissing-prototypes] >=20 > Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett > sound/oss/pas2.h | 3 +++ > sound/oss/pas2_card.c | 2 -- > 2 files changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/sound/oss/pas2.h b/sound/oss/pas2.h > index fa12c55..d19f757 100644 > --- a/sound/oss/pas2.h > +++ b/sound/oss/pas2.h > @@ -15,3 +15,6 @@ int pas_init_mixer(void); > /* From pas_midi.c */ > void pas_midi_init(void); > void pas_midi_interrupt(void); > + > +/* From pas2_mixer.c*/ > +void mix_write(unsigned char data, int ioaddr); > diff --git a/sound/oss/pas2_card.c b/sound/oss/pas2_card.c > index 7004e24..b07954a 100644 > --- a/sound/oss/pas2_card.c > +++ b/sound/oss/pas2_card.c > @@ -74,8 +74,6 @@ static char *pas_model_names[] =3D { > * to support other than the default base address > */ > =20 > -extern void mix_write(unsigned char data, int ioaddr); > - > unsigned char pas_read(int ioaddr) > { > return inb(ioaddr + pas_translate_code); > --=20 > 1.7.9.5 >=20