Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: idxd: make idxd_register/unregister_dma_channel() static

Since idxd_register/unregister_dma_channel() are only called locally, make
them static.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/165187583222.3287435.12882651040433040246.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Dave Jiang and committed by
Vinod Koul
8e6226f0 517a710a

+2 -4
+2 -2
drivers/dma/idxd/dma.c
··· 228 228 dma_async_device_unregister(&idxd->idxd_dma->dma); 229 229 } 230 230 231 - int idxd_register_dma_channel(struct idxd_wq *wq) 231 + static int idxd_register_dma_channel(struct idxd_wq *wq) 232 232 { 233 233 struct idxd_device *idxd = wq->idxd; 234 234 struct dma_device *dma = &idxd->idxd_dma->dma; ··· 265 265 return 0; 266 266 } 267 267 268 - void idxd_unregister_dma_channel(struct idxd_wq *wq) 268 + static void idxd_unregister_dma_channel(struct idxd_wq *wq) 269 269 { 270 270 struct idxd_dma_chan *idxd_chan = wq->idxd_chan; 271 271 struct dma_chan *chan = &idxd_chan->chan;
-2
drivers/dma/idxd/idxd.h
··· 612 612 /* dmaengine */ 613 613 int idxd_register_dma_device(struct idxd_device *idxd); 614 614 void idxd_unregister_dma_device(struct idxd_device *idxd); 615 - int idxd_register_dma_channel(struct idxd_wq *wq); 616 - void idxd_unregister_dma_channel(struct idxd_wq *wq); 617 615 void idxd_parse_completion_status(u8 status, enum dmaengine_tx_result *res); 618 616 void idxd_dma_complete_txd(struct idxd_desc *desc, 619 617 enum idxd_complete_type comp_type, bool free_desc);