]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: don't allow modular build
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2019 06:43:12 +0000 (08:43 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Sep 2019 09:13:19 +0000 (11:13 +0200)
commit8d99a7f519f692e4bda084279cbbf88462698047
tree31dc0e3c2df0ad2bb41f1db6240add56da4c9583
parent229c1fd28edd5d608c4a6e63c4921a7031919ae9
remoteproc: don't allow modular build

Remoteproc started using dma_declare_coherent_memory recently, which is
a bad idea from drivers, and the maintainers agreed to fix that.  But
until that is fixed only allow building the driver built in so that we
can remove the dma_declare_coherent_memory export and prevent other
drivers from "accidentally" using it like remoteproc.  Note that the
driver would also leak the declared coherent memory on unload if it
actually was built as a module at the moment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/Kconfig