mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: arch/arm/common/sa1111.c:1436:14: error: implicit declaration of function 'dmabounce_register_dev'
Date: Tue, 20 Oct 2020 09:10:09 +0800	[thread overview]
Message-ID: <202010200901.CVLaIR5U-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7cf726a59435301046250c42131554d9ccc566b8
commit: 0a0f0d8be76dcd4390ff538e7060fda34db79717 dma-mapping: split <linux/dma-mapping.h>
date:   2 weeks ago
config: arm-badge4_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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/torvalds/linux.git/commit/?id=0a0f0d8be76dcd4390ff538e7060fda34db79717
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0a0f0d8be76dcd4390ff538e7060fda34db79717
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   arch/arm/common/sa1111.c:704:1: warning: no previous prototype for 'sa1111_configure_smc' [-Wmissing-prototypes]
     704 | sa1111_configure_smc(struct sa1111 *sachip, int sdram, unsigned int drac,
         | ^~~~~~~~~~~~~~~~~~~~
   arch/arm/common/sa1111.c: In function 'sa1111_notifier_call':
>> arch/arm/common/sa1111.c:1436:14: error: implicit declaration of function 'dmabounce_register_dev' [-Werror=implicit-function-declaration]
    1436 |    int ret = dmabounce_register_dev(&dev->dev, 1024, 4096,
         |              ^~~~~~~~~~~~~~~~~~~~~~
>> arch/arm/common/sa1111.c:1445:4: error: implicit declaration of function 'dmabounce_unregister_dev' [-Werror=implicit-function-declaration]
    1445 |    dmabounce_unregister_dev(&dev->dev);
         |    ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/dmabounce_register_dev +1436 arch/arm/common/sa1111.c

09a2ba2fa0eba3d Russell King 2012-01-29  1427  
09a2ba2fa0eba3d Russell King 2012-01-29  1428  static int sa1111_notifier_call(struct notifier_block *n, unsigned long action,
09a2ba2fa0eba3d Russell King 2012-01-29  1429  	void *data)
09a2ba2fa0eba3d Russell King 2012-01-29  1430  {
b60752f2b20c167 Russell King 2016-09-06  1431  	struct sa1111_dev *dev = to_sa1111_device(data);
09a2ba2fa0eba3d Russell King 2012-01-29  1432  
09a2ba2fa0eba3d Russell King 2012-01-29  1433  	switch (action) {
09a2ba2fa0eba3d Russell King 2012-01-29  1434  	case BUS_NOTIFY_ADD_DEVICE:
09a2ba2fa0eba3d Russell King 2012-01-29  1435  		if (dev->dev.dma_mask && dev->dma_mask < 0xffffffffUL) {
09a2ba2fa0eba3d Russell King 2012-01-29 @1436  			int ret = dmabounce_register_dev(&dev->dev, 1024, 4096,
09a2ba2fa0eba3d Russell King 2012-01-29  1437  					sa1111_needs_bounce);
09a2ba2fa0eba3d Russell King 2012-01-29  1438  			if (ret)
09a2ba2fa0eba3d Russell King 2012-01-29  1439  				dev_err(&dev->dev, "failed to register with dmabounce: %d\n", ret);
09a2ba2fa0eba3d Russell King 2012-01-29  1440  		}
09a2ba2fa0eba3d Russell King 2012-01-29  1441  		break;
09a2ba2fa0eba3d Russell King 2012-01-29  1442  
09a2ba2fa0eba3d Russell King 2012-01-29  1443  	case BUS_NOTIFY_DEL_DEVICE:
09a2ba2fa0eba3d Russell King 2012-01-29  1444  		if (dev->dev.dma_mask && dev->dma_mask < 0xffffffffUL)
09a2ba2fa0eba3d Russell King 2012-01-29 @1445  			dmabounce_unregister_dev(&dev->dev);
09a2ba2fa0eba3d Russell King 2012-01-29  1446  		break;
09a2ba2fa0eba3d Russell King 2012-01-29  1447  	}
09a2ba2fa0eba3d Russell King 2012-01-29  1448  	return NOTIFY_OK;
09a2ba2fa0eba3d Russell King 2012-01-29  1449  }
09a2ba2fa0eba3d Russell King 2012-01-29  1450  

:::::: The code at line 1436 was first introduced by commit
:::::: 09a2ba2fa0eba3da747db860ac1c8c0956665316 ARM: sa1111: register sa1111 devices with dmabounce in bus notifier

:::::: 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: 16163 bytes --]

             reply	other threads:[~2020-10-20  1:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20  1:10 kernel test robot [this message]
2020-10-20 17:25 kernel test robot

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=202010200901.CVLaIR5U-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hch@lst.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.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

Powered by JetHome