All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sasha Levin <sashal@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [sashal-stable:pending-6.1 31/34] drivers/dma/at_xdmac.c:2013:9: error: implicit declaration of function 'pm_runtime_get_noresume'
Date: Thu, 1 Jun 2023 20:15:23 +0800	[thread overview]
Message-ID: <202306011559.6IvI8ICS-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-06-01 12:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202306011559.6IvI8ICS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sashal@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.