]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: disallow building without CONFIG_PCI again
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Jun 2019 12:45:49 +0000 (14:45 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jun 2019 14:48:48 +0000 (15:48 +0100)
commit0058a772eedd0ceafb817d828d7694a3c3fb2d27
tree3068992c6eb53093ca00c8f8014d611800ed954b
parentc4aab5c497e436063be3e707ae930396aeb69f0b
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: d3da53306962 ("ASoC: SOF: add COMPILE_TEST for PCI options")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/Kconfig
sound/soc/sof/intel/hda.c
sound/soc/sof/sof-pci-dev.c