android_kernel_samsung_sm8650/sound/oss/dmasound
Randy Dunlap 9dd7c46346 sound/oss/dmasound: fix build when drivers are mixed =y/=m
When CONFIG_DMASOUND_ATARI=m and CONFIG_DMASOUND_Q40=y (or vice versa),
dmasound_core.o can be built without dmasound_deinit() being defined,
causing a build error:

ERROR: modpost: "dmasound_deinit" [sound/oss/dmasound/dmasound_atari.ko] undefined!

Modify dmasound_core.c and dmasound.h so that dmasound_deinit() is
always available.

The mixed modes (=y/=m) also mean that several variables and structs
have to be declared in all cases.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: lore.kernel.org/r/202204032138.EFT9qGEd-lkp@intel.com
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: alsa-devel@alsa-project.org
Link: https://lore.kernel.org/r/20220405234118.24830-1-rdunlap@infradead.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-04-07 10:28:48 +02:00
..
dmasound_atari.c ALSA: Use fallthrough pseudo-keyword 2020-07-09 13:01:29 +02:00
dmasound_core.c sound/oss/dmasound: fix build when drivers are mixed =y/=m 2022-04-07 10:28:48 +02:00
dmasound_paula.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
dmasound_q40.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
dmasound.h sound/oss/dmasound: fix build when drivers are mixed =y/=m 2022-04-07 10:28:48 +02:00
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst 2019-06-14 14:21:21 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00