All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-stable:pending-6.1 31/34] drivers/dma/at_xdmac.c:2013:9: error: implicit declaration of function 'pm_runtime_get_noresume'
@ 2023-06-01 12:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-01 12:15 UTC (permalink / raw)
  To: Sasha Levin; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-6.1
head:   01a349b494d6b89296a3f6d2256baf149b4331a6
commit: 5bcbdb894c83b9f724890eaaca1a5ef516ba4ee2 [31/34] dmaengine: at_xdmac: disable/enable clock directly on suspend/resume
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20230601/202306011559.6IvI8ICS-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=5bcbdb894c83b9f724890eaaca1a5ef516ba4ee2
        git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-stable pending-6.1
        git checkout 5bcbdb894c83b9f724890eaaca1a5ef516ba4ee2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/dma/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306011559.6IvI8ICS-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/dma/at_xdmac.c: In function 'atmel_xdmac_resume':
>> drivers/dma/at_xdmac.c:2013:9: error: implicit declaration of function 'pm_runtime_get_noresume' [-Werror=implicit-function-declaration]
    2013 |         pm_runtime_get_noresume(atxdmac->dev);
         |         ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/dma/at_xdmac.c:2013:40: error: 'struct at_xdmac' has no member named 'dev'
    2013 |         pm_runtime_get_noresume(atxdmac->dev);
         |                                        ^~
   cc1: some warnings being treated as errors


vim +/pm_runtime_get_noresume +2013 drivers/dma/at_xdmac.c

  1999	
  2000	static int __maybe_unused atmel_xdmac_resume(struct device *dev)
  2001	{
  2002		struct at_xdmac		*atxdmac = dev_get_drvdata(dev);
  2003		struct at_xdmac_chan	*atchan;
  2004		struct dma_chan		*chan, *_chan;
  2005		struct platform_device	*pdev = container_of(dev, struct platform_device, dev);
  2006		int			i;
  2007		int ret;
  2008	
  2009		ret = clk_prepare_enable(atxdmac->clk);
  2010		if (ret)
  2011			return ret;
  2012	
> 2013		pm_runtime_get_noresume(atxdmac->dev);
  2014	
  2015		at_xdmac_axi_config(pdev);
  2016	
  2017		/* Clear pending interrupts. */
  2018		for (i = 0; i < atxdmac->dma.chancnt; i++) {
  2019			atchan = &atxdmac->chan[i];
  2020			while (at_xdmac_chan_read(atchan, AT_XDMAC_CIS))
  2021				cpu_relax();
  2022		}
  2023	
  2024		at_xdmac_write(atxdmac, AT_XDMAC_GIE, atxdmac->save_gim);
  2025		list_for_each_entry_safe(chan, _chan, &atxdmac->dma.channels, device_node) {
  2026			atchan = to_at_xdmac_chan(chan);
  2027			at_xdmac_chan_write(atchan, AT_XDMAC_CC, atchan->save_cc);
  2028			if (at_xdmac_chan_is_cyclic(atchan)) {
  2029				if (at_xdmac_chan_is_paused(atchan))
  2030					at_xdmac_device_resume(chan);
  2031				at_xdmac_chan_write(atchan, AT_XDMAC_CNDA, atchan->save_cnda);
  2032				at_xdmac_chan_write(atchan, AT_XDMAC_CNDC, atchan->save_cndc);
  2033				at_xdmac_chan_write(atchan, AT_XDMAC_CIE, atchan->save_cim);
  2034				wmb();
  2035				if (atxdmac->save_gs & atchan->mask)
  2036					at_xdmac_write(atxdmac, AT_XDMAC_GE, atchan->mask);
  2037			}
  2038		}
  2039		return 0;
  2040	}
  2041	

-- 
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:[~2023-06-01 12:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-01 12:15 [sashal-stable:pending-6.1 31/34] drivers/dma/at_xdmac.c:2013:9: error: implicit declaration of function 'pm_runtime_get_noresume' 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.