Repository navigation
Commit 9de7ead
ASoC: SOF: disallow building without CONFIG_PCI again
Compile-testing without PCI just causes warnings:
sound/soc/sof/sof-pci-dev.c:330:13: error: 'sof_pci_remove' defined but not used [-Werror=unused-function]
static void sof_pci_remove(struct pci_dev *pci)
^~~~~~~~~~~~~~
sound/soc/sof/sof-pci-dev.c:230:12: error: 'sof_pci_probe' defined but not used [-Werror=unused-function]
static int sof_pci_probe(struct pci_dev *pci,
^~~~~~~~~~~~~
I tried to fix this in a way that would still allow compile
tests, but it got too ugly, so this just reverts the patch
that allowed it in the first place.
Most architectures do allow enabling PCI, so the value of the
COMPILE_TEST alternative was not very high to start with.
Fixes: e13ef82 ("ASoC: SOF: add COMPILE_TEST for PCI options")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 5b8cc7d commit 9de7ead
3 files changed
Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
529 | 528 | | |
530 | | - | |
531 | 529 | | |
532 | 530 | | |
533 | 531 | | |
| |||
539 | 537 | | |
540 | 538 | | |
541 | 539 | | |
542 | | - | |
543 | 540 | | |
544 | | - | |
545 | 541 | | |
546 | 542 | | |
547 | 543 | | |
| |||
598 | 594 | | |
599 | 595 | | |
600 | 596 | | |
601 | | - | |
602 | 597 | | |
603 | 598 | | |
604 | | - | |
605 | 599 | | |
606 | 600 | | |
607 | 601 | | |
| |||
616 | 610 | | |
617 | 611 | | |
618 | 612 | | |
| 613 | + | |
619 | 614 | | |
620 | 615 | | |
621 | 616 | | |
| |||
644 | 639 | | |
645 | 640 | | |
646 | 641 | | |
647 | | - | |
648 | | - | |
649 | | - | |
| 642 | + | |
650 | 643 | | |
651 | | - | |
652 | | - | |
653 | 644 | | |
654 | 645 | | |
655 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | 254 | | |
256 | 255 | | |
257 | 256 | | |
258 | | - | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
| |||
388 | 386 | | |
389 | 387 | | |
390 | 388 | | |
391 | | - | |
392 | 389 | | |
393 | 390 | | |
394 | 391 | | |
| |||
400 | 397 | | |
401 | 398 | | |
402 | 399 | | |
403 | | - | |
404 | 400 | | |
405 | 401 | | |
0 commit comments