]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c
authorRashika Kheria <rashika.kheria@gmail.com>
Fri, 7 Feb 2014 16:46:31 +0000 (22:16 +0530)
committerTakashi Iwai <tiwai@suse.de>
Fri, 7 Feb 2014 17:24:42 +0000 (18:24 +0100)
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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/pas2.h
sound/oss/pas2_card.c

index fa12c55f560e05992872018b25bd7b75e6267952..d19f757dbd79676ab48d1667c8ed38d7a98434b1 100644 (file)
@@ -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);
index 7004e24d209f167c196e231ffc1f883033eb8d54..b07954a7953679b077b12b190343492a3271510f 100644 (file)
@@ -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);