linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Cai Huoqing <caihuoqing@baidu.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Vinod Koul <vkoul@kernel.org>
Subject: [linux-next:master 10053/13220] drivers/dma/sa11x0-dma.c:1004:12: error: unused function 'sa11x0_dma_suspend'
Date: Sun, 7 Nov 2021 10:37:09 +0800	[thread overview]
Message-ID: <202111071055.vrR9UHln-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 7392 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6a37ebbe07bf72cd5fd791d67a664f37c8f17a13
commit: 7789e3464cb610cb8925cd8605bc0aa9d088280d [10053/13220] dmaengine: sa11x0: Make use of the helper macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS()
config: i386-buildonly-randconfig-r004-20211025 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a461fa64bb37cffd73f683c74f6b0780379fc2ca)
reproduce (this is a W=1 build):
        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/next/linux-next.git/commit/?id=7789e3464cb610cb8925cd8605bc0aa9d088280d
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 7789e3464cb610cb8925cd8605bc0aa9d088280d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

Note: the linux-next/master HEAD 6a37ebbe07bf72cd5fd791d67a664f37c8f17a13 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> drivers/dma/sa11x0-dma.c:1004:12: error: unused function 'sa11x0_dma_suspend' [-Werror,-Wunused-function]
   static int sa11x0_dma_suspend(struct device *dev)
              ^
>> drivers/dma/sa11x0-dma.c:1042:12: error: unused function 'sa11x0_dma_resume' [-Werror,-Wunused-function]
   static int sa11x0_dma_resume(struct device *dev)
              ^
   2 errors generated.


vim +/sa11x0_dma_suspend +1004 drivers/dma/sa11x0-dma.c

6365bead25efc8 Russell King 2012-01-09  1003  
6365bead25efc8 Russell King 2012-01-09 @1004  static int sa11x0_dma_suspend(struct device *dev)
6365bead25efc8 Russell King 2012-01-09  1005  {
6365bead25efc8 Russell King 2012-01-09  1006  	struct sa11x0_dma_dev *d = dev_get_drvdata(dev);
6365bead25efc8 Russell King 2012-01-09  1007  	unsigned pch;
6365bead25efc8 Russell King 2012-01-09  1008  
6365bead25efc8 Russell King 2012-01-09  1009  	for (pch = 0; pch < NR_PHY_CHAN; pch++) {
6365bead25efc8 Russell King 2012-01-09  1010  		struct sa11x0_dma_phy *p = &d->phy[pch];
6365bead25efc8 Russell King 2012-01-09  1011  		u32 dcsr, saved_dcsr;
6365bead25efc8 Russell King 2012-01-09  1012  
6365bead25efc8 Russell King 2012-01-09  1013  		dcsr = saved_dcsr = readl_relaxed(p->base + DMA_DCSR_R);
6365bead25efc8 Russell King 2012-01-09  1014  		if (dcsr & DCSR_RUN) {
6365bead25efc8 Russell King 2012-01-09  1015  			writel(DCSR_RUN | DCSR_IE, p->base + DMA_DCSR_C);
6365bead25efc8 Russell King 2012-01-09  1016  			dcsr = readl_relaxed(p->base + DMA_DCSR_R);
6365bead25efc8 Russell King 2012-01-09  1017  		}
6365bead25efc8 Russell King 2012-01-09  1018  
6365bead25efc8 Russell King 2012-01-09  1019  		saved_dcsr &= DCSR_RUN | DCSR_IE;
6365bead25efc8 Russell King 2012-01-09  1020  		if (dcsr & DCSR_BIU) {
6365bead25efc8 Russell King 2012-01-09  1021  			p->dbs[0] = readl_relaxed(p->base + DMA_DBSB);
6365bead25efc8 Russell King 2012-01-09  1022  			p->dbt[0] = readl_relaxed(p->base + DMA_DBTB);
6365bead25efc8 Russell King 2012-01-09  1023  			p->dbs[1] = readl_relaxed(p->base + DMA_DBSA);
6365bead25efc8 Russell King 2012-01-09  1024  			p->dbt[1] = readl_relaxed(p->base + DMA_DBTA);
6365bead25efc8 Russell King 2012-01-09  1025  			saved_dcsr |= (dcsr & DCSR_STRTA ? DCSR_STRTB : 0) |
6365bead25efc8 Russell King 2012-01-09  1026  				      (dcsr & DCSR_STRTB ? DCSR_STRTA : 0);
6365bead25efc8 Russell King 2012-01-09  1027  		} else {
6365bead25efc8 Russell King 2012-01-09  1028  			p->dbs[0] = readl_relaxed(p->base + DMA_DBSA);
6365bead25efc8 Russell King 2012-01-09  1029  			p->dbt[0] = readl_relaxed(p->base + DMA_DBTA);
6365bead25efc8 Russell King 2012-01-09  1030  			p->dbs[1] = readl_relaxed(p->base + DMA_DBSB);
6365bead25efc8 Russell King 2012-01-09  1031  			p->dbt[1] = readl_relaxed(p->base + DMA_DBTB);
6365bead25efc8 Russell King 2012-01-09  1032  			saved_dcsr |= dcsr & (DCSR_STRTA | DCSR_STRTB);
6365bead25efc8 Russell King 2012-01-09  1033  		}
6365bead25efc8 Russell King 2012-01-09  1034  		p->dcsr = saved_dcsr;
6365bead25efc8 Russell King 2012-01-09  1035  
6365bead25efc8 Russell King 2012-01-09  1036  		writel(DCSR_STRTA | DCSR_STRTB, p->base + DMA_DCSR_C);
6365bead25efc8 Russell King 2012-01-09  1037  	}
6365bead25efc8 Russell King 2012-01-09  1038  
6365bead25efc8 Russell King 2012-01-09  1039  	return 0;
6365bead25efc8 Russell King 2012-01-09  1040  }
6365bead25efc8 Russell King 2012-01-09  1041  
6365bead25efc8 Russell King 2012-01-09 @1042  static int sa11x0_dma_resume(struct device *dev)
6365bead25efc8 Russell King 2012-01-09  1043  {
6365bead25efc8 Russell King 2012-01-09  1044  	struct sa11x0_dma_dev *d = dev_get_drvdata(dev);
6365bead25efc8 Russell King 2012-01-09  1045  	unsigned pch;
6365bead25efc8 Russell King 2012-01-09  1046  
6365bead25efc8 Russell King 2012-01-09  1047  	for (pch = 0; pch < NR_PHY_CHAN; pch++) {
6365bead25efc8 Russell King 2012-01-09  1048  		struct sa11x0_dma_phy *p = &d->phy[pch];
6365bead25efc8 Russell King 2012-01-09  1049  		struct sa11x0_dma_desc *txd = NULL;
6365bead25efc8 Russell King 2012-01-09  1050  		u32 dcsr = readl_relaxed(p->base + DMA_DCSR_R);
6365bead25efc8 Russell King 2012-01-09  1051  
6365bead25efc8 Russell King 2012-01-09  1052  		WARN_ON(dcsr & (DCSR_BIU | DCSR_STRTA | DCSR_STRTB | DCSR_RUN));
6365bead25efc8 Russell King 2012-01-09  1053  
6365bead25efc8 Russell King 2012-01-09  1054  		if (p->txd_done)
6365bead25efc8 Russell King 2012-01-09  1055  			txd = p->txd_done;
6365bead25efc8 Russell King 2012-01-09  1056  		else if (p->txd_load)
6365bead25efc8 Russell King 2012-01-09  1057  			txd = p->txd_load;
6365bead25efc8 Russell King 2012-01-09  1058  
6365bead25efc8 Russell King 2012-01-09  1059  		if (!txd)
6365bead25efc8 Russell King 2012-01-09  1060  			continue;
6365bead25efc8 Russell King 2012-01-09  1061  
6365bead25efc8 Russell King 2012-01-09  1062  		writel_relaxed(txd->ddar, p->base + DMA_DDAR);
6365bead25efc8 Russell King 2012-01-09  1063  
6365bead25efc8 Russell King 2012-01-09  1064  		writel_relaxed(p->dbs[0], p->base + DMA_DBSA);
6365bead25efc8 Russell King 2012-01-09  1065  		writel_relaxed(p->dbt[0], p->base + DMA_DBTA);
6365bead25efc8 Russell King 2012-01-09  1066  		writel_relaxed(p->dbs[1], p->base + DMA_DBSB);
6365bead25efc8 Russell King 2012-01-09  1067  		writel_relaxed(p->dbt[1], p->base + DMA_DBTB);
6365bead25efc8 Russell King 2012-01-09  1068  		writel_relaxed(p->dcsr, p->base + DMA_DCSR_S);
6365bead25efc8 Russell King 2012-01-09  1069  	}
6365bead25efc8 Russell King 2012-01-09  1070  
6365bead25efc8 Russell King 2012-01-09  1071  	return 0;
6365bead25efc8 Russell King 2012-01-09  1072  }
6365bead25efc8 Russell King 2012-01-09  1073  

:::::: The code at line 1004 was first introduced by commit
:::::: 6365bead25efc84a4cf4aa9b0a7638f8a970cdff DMA: sa11x0: add SA-11x0 DMA driver

:::::: TO: Russell King <rmk+kernel@arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34091 bytes --]

                 reply	other threads:[~2021-11-07  2:37 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=202111071055.vrR9UHln-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=caihuoqing@baidu.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=vkoul@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox