Skip to content

Commit 357ad4d

Browse files
milesdotchentiwai
authored andcommitted
sound/oss/dmasound: fix 'dmasound_setup' defined but not used
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: 9dd7c46 ("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>
1 parent 24d0c9f commit 357ad4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/oss/dmasound/dmasound_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ void dmasound_deinit(void)
14281428
unregister_sound_dsp(sq_unit);
14291429
}
14301430

1431-
static int dmasound_setup(char *str)
1431+
static int __maybe_unused dmasound_setup(char *str)
14321432
{
14331433
int ints[6], size;
14341434

0 commit comments

Comments
 (0)