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

ALSA: isa/gus: remove -Wmissing-prototypes warnings

Fix W=1 warnings by adding prototypes to header file

sound/isa/gus/gus_timer.c:141:6: warning: no previous prototype for
‘snd_gf1_timers_init’ [-Wmissing-prototypes]
141 | void snd_gf1_timers_init(struct snd_gus_card * gus)
| ^~~~~~~~~~~~~~~~~~~
sound/isa/gus/gus_timer.c:177:6: warning: no previous prototype for
‘snd_gf1_timers_done’ [-Wmissing-prototypes]
177 | void snd_gf1_timers_done(struct snd_gus_card * gus)
| ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200702193604.169059-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Pierre-Louis Bossart and committed by
Takashi Iwai
65cec1ef d0af37c8

+4 -2
+4
include/sound/gus.h
··· 613 613 int snd_gus_dram_read(struct snd_gus_card *gus, char __user *ptr, 614 614 unsigned int addr, unsigned int size, int rom); 615 615 616 + /* gus_timer.c */ 617 + void snd_gf1_timers_init(struct snd_gus_card *gus); 618 + void snd_gf1_timers_done(struct snd_gus_card *gus); 619 + 616 620 #endif /* __SOUND_GUS_H */
-2
sound/isa/gus/gus_reset.c
··· 9 9 #include <sound/core.h> 10 10 #include <sound/gus.h> 11 11 12 - extern void snd_gf1_timers_init(struct snd_gus_card * gus); 13 - extern void snd_gf1_timers_done(struct snd_gus_card * gus); 14 12 extern int snd_gf1_synth_init(struct snd_gus_card * gus); 15 13 extern void snd_gf1_synth_done(struct snd_gus_card * gus); 16 14