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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202010210155.w7wxZCQa-lkp@intel.com>
Date:   Wed, 21 Oct 2020 01:25:04 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        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:   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@...el.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@....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" (30247 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ