android_kernel_asus_sm8350/sound/core/oss
Arnd Bergmann cea581b385 ALSA: oss: avoid missing-prototype warnings
[ Upstream commit 040b5a046a9e18098580d3ccd029e2318fca7859 ]

Two functions are defined and used in pcm_oss.c but also optionally
used from io.c, with an optional prototype. If CONFIG_SND_PCM_OSS_PLUGINS
is disabled, this causes a warning as the functions are not static
and have no prototype:

sound/core/oss/pcm_oss.c:1235:19: error: no previous prototype for 'snd_pcm_oss_write3' [-Werror=missing-prototypes]
sound/core/oss/pcm_oss.c:1266:19: error: no previous prototype for 'snd_pcm_oss_read3' [-Werror=missing-prototypes]

Avoid this by making the prototypes unconditional.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230516195046.550584-2-arnd@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:28:59 +02:00
..
copy.c
io.c
linear.c ALSA: pcm: oss: Avoid potential buffer overflows 2019-12-13 08:42:38 +01:00
Makefile
mixer_oss.c ALSA: mixer: fix deadlock in snd_mixer_oss_set_volume 2021-11-17 09:48:25 +01:00
mulaw.c ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check 2020-09-09 19:12:32 +02:00
pcm_oss.c ALSA: pcm: oss: Fix race at SNDCTL_DSP_SYNC 2022-09-28 11:03:57 +02:00
pcm_plugin.c ALSA: oss: Fix PCM OSS buffer allocation overflow 2022-03-28 08:46:46 +02:00
pcm_plugin.h ALSA: oss: avoid missing-prototype warnings 2023-06-09 10:28:59 +02:00
rate.c ALSA: pcm: oss: Use struct_size() helper 2019-05-24 07:59:19 +02:00
route.c ALSA: pcm: oss: Avoid potential buffer overflows 2019-12-13 08:42:38 +01:00