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

selftests/alsa: make dump_config_tree() as void function

dump_config_tree() is declared to return an int, but the compiler cannot
prove that it always returns any value at all. This leads to a clang
warning, when building via:

make LLVM=1 -C tools/testing/selftests

Suggested-by: John Hubbard <jhubbard@nvidia.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240506075419.301780-1-perex@perex.cz

authored by

Jaroslav Kysela and committed by
Takashi Iwai
b9112b17 5e7488cd

+1 -1
+1 -1
tools/testing/selftests/alsa/conf.c
··· 105 105 return NULL; 106 106 } 107 107 108 - static int dump_config_tree(snd_config_t *top) 108 + static void dump_config_tree(snd_config_t *top) 109 109 { 110 110 snd_output_t *out; 111 111 int err;