Commit 8e6226f0 authored by Dave Jiang's avatar Dave Jiang Committed by Vinod Koul

dmaengine: idxd: make idxd_register/unregister_dma_channel() static

Since idxd_register/unregister_dma_channel() are only called locally, make
them static.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/165187583222.3287435.12882651040433040246.stgit@djiang5-desk3.ch.intel.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 517a710a
...@@ -228,7 +228,7 @@ void idxd_unregister_dma_device(struct idxd_device *idxd) ...@@ -228,7 +228,7 @@ void idxd_unregister_dma_device(struct idxd_device *idxd)
dma_async_device_unregister(&idxd->idxd_dma->dma); dma_async_device_unregister(&idxd->idxd_dma->dma);
} }
int idxd_register_dma_channel(struct idxd_wq *wq) static int idxd_register_dma_channel(struct idxd_wq *wq)
{ {
struct idxd_device *idxd = wq->idxd; struct idxd_device *idxd = wq->idxd;
struct dma_device *dma = &idxd->idxd_dma->dma; struct dma_device *dma = &idxd->idxd_dma->dma;
...@@ -265,7 +265,7 @@ int idxd_register_dma_channel(struct idxd_wq *wq) ...@@ -265,7 +265,7 @@ int idxd_register_dma_channel(struct idxd_wq *wq)
return 0; return 0;
} }
void idxd_unregister_dma_channel(struct idxd_wq *wq) static void idxd_unregister_dma_channel(struct idxd_wq *wq)
{ {
struct idxd_dma_chan *idxd_chan = wq->idxd_chan; struct idxd_dma_chan *idxd_chan = wq->idxd_chan;
struct dma_chan *chan = &idxd_chan->chan; struct dma_chan *chan = &idxd_chan->chan;
......
...@@ -612,8 +612,6 @@ int idxd_enqcmds(struct idxd_wq *wq, void __iomem *portal, const void *desc); ...@@ -612,8 +612,6 @@ int idxd_enqcmds(struct idxd_wq *wq, void __iomem *portal, const void *desc);
/* dmaengine */ /* dmaengine */
int idxd_register_dma_device(struct idxd_device *idxd); int idxd_register_dma_device(struct idxd_device *idxd);
void idxd_unregister_dma_device(struct idxd_device *idxd); void idxd_unregister_dma_device(struct idxd_device *idxd);
int idxd_register_dma_channel(struct idxd_wq *wq);
void idxd_unregister_dma_channel(struct idxd_wq *wq);
void idxd_parse_completion_status(u8 status, enum dmaengine_tx_result *res); void idxd_parse_completion_status(u8 status, enum dmaengine_tx_result *res);
void idxd_dma_complete_txd(struct idxd_desc *desc, void idxd_dma_complete_txd(struct idxd_desc *desc,
enum idxd_complete_type comp_type, bool free_desc); enum idxd_complete_type comp_type, bool free_desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment