tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 2c31b7382fbc783020d6d38a7a560801d1a58c7b
commit: 109d9eff9eabe16d9d2d84351d6ad709dcf14b54 [56/96] BACKPORT: dma-mapping: make
support for dma ops optional
config: x86_64-randconfig-a015-20210419 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
1c10201d9660c1d6f43a7226ca7381bfa255105d)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 109d9eff9eabe16d9d2d84351d6ad709dcf14b54
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> arch/x86/pci/common.c:655:14: error: no member named
'dma_ops' in 'struct device'
pdev->dev.dma_ops = domain->dma_ops;
~~~~~~~~~ ^
1 error generated.
vim +655 arch/x86/pci/common.c
d9c3d6ff227cbd Keith Busch 2016-01-12 647
d9c3d6ff227cbd Keith Busch 2016-01-12 648 static void set_dma_domain_ops(struct
pci_dev *pdev)
d9c3d6ff227cbd Keith Busch 2016-01-12 649 {
d9c3d6ff227cbd Keith Busch 2016-01-12 650 struct dma_domain *domain;
d9c3d6ff227cbd Keith Busch 2016-01-12 651
d9c3d6ff227cbd Keith Busch 2016-01-12 652 spin_lock(&dma_domain_list_lock);
d9c3d6ff227cbd Keith Busch 2016-01-12 653 list_for_each_entry(domain,
&dma_domain_list, node) {
d9c3d6ff227cbd Keith Busch 2016-01-12 654 if (pci_domain_nr(pdev->bus) ==
domain->domain_nr) {
5657933dbb6e25 Bart Van Assche 2017-01-20 @655 pdev->dev.dma_ops =
domain->dma_ops;
d9c3d6ff227cbd Keith Busch 2016-01-12 656 break;
d9c3d6ff227cbd Keith Busch 2016-01-12 657 }
d9c3d6ff227cbd Keith Busch 2016-01-12 658 }
d9c3d6ff227cbd Keith Busch 2016-01-12 659 spin_unlock(&dma_domain_list_lock);
d9c3d6ff227cbd Keith Busch 2016-01-12 660 }
d9c3d6ff227cbd Keith Busch 2016-01-12 661 #else
d9c3d6ff227cbd Keith Busch 2016-01-12 662 static void set_dma_domain_ops(struct
pci_dev *pdev) {}
d9c3d6ff227cbd Keith Busch 2016-01-12 663 #endif
d9c3d6ff227cbd Keith Busch 2016-01-12 664
:::::: The code at line 655 was first introduced by commit
:::::: 5657933dbb6e25feaf5d8df8c88f96cdade693a3 treewide: Move dma_ops from struct
dev_archdata into struct device
:::::: TO: Bart Van Assche <bart.vanassche(a)sandisk.com>
:::::: CC: Doug Ledford <dledford(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org