Commit 9dd7c46
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>1 parent 9eb6f5c commit 9dd7c46
2 files changed
+1
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 92 | | |
97 | 93 | | |
98 | 94 | | |
| |||
114 | 110 | | |
115 | 111 | | |
116 | 112 | | |
117 | | - | |
118 | 113 | | |
119 | | - | |
120 | 114 | | |
121 | 115 | | |
122 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
214 | | - | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
| |||
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 392 | | |
398 | 393 | | |
399 | 394 | | |
| |||
1171 | 1166 | | |
1172 | 1167 | | |
1173 | 1168 | | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | 1169 | | |
1178 | 1170 | | |
1179 | 1171 | | |
| |||
1366 | 1358 | | |
1367 | 1359 | | |
1368 | 1360 | | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | 1361 | | |
1373 | 1362 | | |
1374 | 1363 | | |
| |||
1386 | 1375 | | |
1387 | 1376 | | |
1388 | 1377 | | |
1389 | | - | |
| 1378 | + | |
1390 | 1379 | | |
1391 | 1380 | | |
1392 | | - | |
1393 | 1381 | | |
1394 | 1382 | | |
1395 | 1383 | | |
| |||
1408 | 1396 | | |
1409 | 1397 | | |
1410 | 1398 | | |
1411 | | - | |
1412 | 1399 | | |
1413 | | - | |
1414 | 1400 | | |
1415 | 1401 | | |
1416 | 1402 | | |
| |||
1424 | 1410 | | |
1425 | 1411 | | |
1426 | 1412 | | |
1427 | | - | |
1428 | | - | |
1429 | 1413 | | |
1430 | 1414 | | |
1431 | 1415 | | |
| |||
1444 | 1428 | | |
1445 | 1429 | | |
1446 | 1430 | | |
1447 | | - | |
1448 | | - | |
1449 | 1431 | | |
1450 | 1432 | | |
1451 | 1433 | | |
| |||
1489 | 1471 | | |
1490 | 1472 | | |
1491 | 1473 | | |
1492 | | - | |
1493 | | - | |
1494 | 1474 | | |
1495 | 1475 | | |
1496 | 1476 | | |
| |||
1577 | 1557 | | |
1578 | 1558 | | |
1579 | 1559 | | |
1580 | | - | |
1581 | 1560 | | |
1582 | | - | |
1583 | 1561 | | |
1584 | 1562 | | |
1585 | 1563 | | |
| |||
0 commit comments