mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
sound/oss/dmasound: fix 'dmasound_setup' defined but not used
commit357ad4d898
upstream. We observed: 'dmasound_setup' defined but not used error with COMPILER=gcc ARCH=m68k DEFCONFIG=allmodconfig build. Fix it by adding __maybe_unused to dmasound_setup. Error(s): sound/oss/dmasound/dmasound_core.c:1431:12: error: 'dmasound_setup' defined but not used [-Werror=unused-function] Fixes:9dd7c46346
("sound/oss/dmasound: fix build when drivers are mixed =y/=m") Signed-off-by: Miles Chen <miles.chen@mediatek.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Link: https://lore.kernel.org/r/20220414091940.2216-1-miles.chen@mediatek.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9079ff34a1
commit
c820c05c5f
1 changed files with 1 additions and 1 deletions
|
@ -1442,7 +1442,7 @@ void dmasound_deinit(void)
|
|||
unregister_sound_dsp(sq_unit);
|
||||
}
|
||||
|
||||
static int dmasound_setup(char *str)
|
||||
static int __maybe_unused dmasound_setup(char *str)
|
||||
{
|
||||
int ints[6], size;
|
||||
|
||||
|
|
Loading…
Reference in a new issue