linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/arm/common/sa1111.c:1436:14: error: implicit declaration of function 'dmabounce_register_dev'
@ 2020-10-20  1:10 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-10-20  1:10 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: kbuild-all, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* arch/arm/common/sa1111.c:1436:14: error: implicit declaration of function 'dmabounce_register_dev'
@ 2020-10-20 17:25 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-10-20 17:25 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: kbuild-all, clang-built-linux, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5c7e3f3f5cbc31118914ceee969154582ad3aa6b
commit: 0a0f0d8be76dcd4390ff538e7060fda34db79717 dma-mapping: split <linux/dma-mapping.h>
date:   2 weeks ago
config: arm-randconfig-r015-20201020 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ea693a162786d933863ab079648d4261ac0ead47)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # 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=clang 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 function 'sa1111_configure_smc' [-Wmissing-prototypes]
   sa1111_configure_smc(struct sa1111 *sachip, int sdram, unsigned int drac,
   ^
   arch/arm/common/sa1111.c:703:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void
   ^
   static 
>> arch/arm/common/sa1111.c:1436:14: error: implicit declaration of function 'dmabounce_register_dev' [-Werror,-Wimplicit-function-declaration]
                           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,-Wimplicit-function-declaration]
                           dmabounce_unregister_dev(&dev->dev);
                           ^
   1 warning and 2 errors generated.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-20 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20  1:10 arch/arm/common/sa1111.c:1436:14: error: implicit declaration of function 'dmabounce_register_dev' kernel test robot
2020-10-20 17:25 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).