Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c

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>

authored by

Rashika Kheria and committed by
Takashi Iwai
71b9b173 f9367f3f

+3 -2
+3
sound/oss/pas2.h
··· 15 15 /* From pas_midi.c */ 16 16 void pas_midi_init(void); 17 17 void pas_midi_interrupt(void); 18 + 19 + /* From pas2_mixer.c*/ 20 + void mix_write(unsigned char data, int ioaddr);
-2
sound/oss/pas2_card.c
··· 74 74 * to support other than the default base address 75 75 */ 76 76 77 - extern void mix_write(unsigned char data, int ioaddr); 78 - 79 77 unsigned char pas_read(int ioaddr) 80 78 { 81 79 return inb(ioaddr + pas_translate_code);