All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:6.6-2.0.x-imx 1169/16788] drivers/dma/mxs-dma.c:911:5: warning: no previous prototype for 'mxs_dma_runtime_suspend'
@ 2024-09-28 11:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-28 11:22 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: oe-kbuild-all

tree:   https://github.com/Freescale/linux-fslc 6.6-2.0.x-imx
head:   ac32ba5fe66266329914d2020570364afe217bec
commit: b1e770181b1bbb4b7bd2da67d72ad1d686578079 [1169/16788] LF-251-1: dma: mxs-dma: enable runtime PM for mxs-dma
config: arm64-randconfig-002-20240928 (https://download.01.org/0day-ci/archive/20240928/202409281949.SReLcTY3-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240928/202409281949.SReLcTY3-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409281949.SReLcTY3-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/dma/mxs-dma.c: In function 'mxs_dma_remove':
   drivers/dma/mxs-dma.c:876:9: error: implicit declaration of function 'dma_pool_destroy'; did you mean 'mas_destroy'? [-Wimplicit-function-declaration]
     876 |         dma_pool_destroy(mxs_dma->mxs_chans[0].ccw_pool);
         |         ^~~~~~~~~~~~~~~~
         |         mas_destroy
   drivers/dma/mxs-dma.c:876:47: error: 'struct mxs_dma_chan' has no member named 'ccw_pool'
     876 |         dma_pool_destroy(mxs_dma->mxs_chans[0].ccw_pool);
         |                                               ^
   drivers/dma/mxs-dma.c:882:25: error: 'struct mxs_dma_chan' has no member named 'ccw_pool'
     882 |                 mxs_chan->ccw_pool = NULL;
         |                         ^~
   drivers/dma/mxs-dma.c: At top level:
>> drivers/dma/mxs-dma.c:911:5: warning: no previous prototype for 'mxs_dma_runtime_suspend' [-Wmissing-prototypes]
     911 | int mxs_dma_runtime_suspend(struct device *dev)
         |     ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/dma/mxs-dma.c:920:5: warning: no previous prototype for 'mxs_dma_runtime_resume' [-Wmissing-prototypes]
     920 | int mxs_dma_runtime_resume(struct device *dev)
         |     ^~~~~~~~~~~~~~~~~~~~~~


vim +/mxs_dma_runtime_suspend +911 drivers/dma/mxs-dma.c

   910	
 > 911	int mxs_dma_runtime_suspend(struct device *dev)
   912	{
   913		struct mxs_dma_engine *mxs_dma = dev_get_drvdata(dev);
   914	
   915		clk_disable_unprepare(mxs_dma->clk);
   916	
   917		return 0;
   918	}
   919	
 > 920	int mxs_dma_runtime_resume(struct device *dev)
   921	{
   922		struct mxs_dma_engine *mxs_dma = dev_get_drvdata(dev);
   923		int ret;
   924	
   925		ret = clk_prepare_enable(mxs_dma->clk);
   926		if (ret) {
   927			dev_err(&mxs_dma->pdev->dev, "failed to enable the clock\n");
   928			return ret;
   929		}
   930	
   931		return 0;
   932	}
   933	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-28 11:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-28 11:22 [freescale-fslc:6.6-2.0.x-imx 1169/16788] drivers/dma/mxs-dma.c:911:5: warning: no previous prototype for 'mxs_dma_runtime_suspend' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.