lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202010200901.CVLaIR5U-lkp@intel.com>
Date:   Tue, 20 Oct 2020 09:10:09 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: arch/arm/common/sa1111.c:1436:14: error: implicit declaration of
 function 'dmabounce_register_dev'

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@...el.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@....linux.org.uk>
:::::: CC: Russell King <rmk+kernel@....linux.org.uk>

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

Download attachment ".config.gz" of type "application/gzip" (16163 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ