From: Josh Triplett <josh@joshtriplett.org>
To: Rashika Kheria <rashika.kheria@gmail.com>
Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org
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 [thread overview]
Message-ID: <20140207172341.GD7298@jtriplet-mobl1> (raw)
In-Reply-To: <3c35e9b980ccc0ca155214e8fad0dae24b20c5af.1391791103.git.rashika.kheria@gmail.com>
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.
>
> This eliminates the following warnings in oss/pas2_mixer.c:
> sound/oss/pas2_mixer.c:62:1: warning: no previous prototype for ‘mix_write’ [-Wmissing-prototypes]
>
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
> sound/oss/pas2.h | 3 +++
> sound/oss/pas2_card.c | 2 --
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> 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[] = {
> * to support other than the default base address
> */
>
> -extern void mix_write(unsigned char data, int ioaddr);
> -
> unsigned char pas_read(int ioaddr)
> {
> return inb(ioaddr + pas_translate_code);
> --
> 1.7.9.5
>
next prev parent reply other threads:[~2014-02-07 17:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 16:41 [PATCH 1/3] sound: Include appropriate header file in pcsp/pcsp_input.c Rashika Kheria
2014-02-07 16:44 ` [PATCH 2/3] sound: Remove unused function in pci/lx6464es/lx_core.c Rashika Kheria
2014-02-07 17:22 ` Josh Triplett
2014-02-07 16:46 ` [PATCH 3/3] sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c Rashika Kheria
2014-02-07 17:23 ` Josh Triplett [this message]
2014-02-07 17:22 ` [PATCH 1/3] sound: Include appropriate header file in pcsp/pcsp_input.c Josh Triplett
2014-02-07 17:25 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140207172341.GD7298@jtriplet-mobl1 \
--to=josh@joshtriplett.org \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=rashika.kheria@gmail.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox