tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const-2 head: 0be8abebbd476395ee73f4a83d4988dc9958f83c commit: 0be8abebbd476395ee73f4a83d4988dc9958f83c [78/78] driver core: mark struct device's bus_type as const. config: arm-randconfig-r046-20230209 (https://download.01.org/0day-ci/archive/20230210/202302100601.wZtQDBrU-lkp@xxxxxxxxx/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/gregkh/driver-core.git/commit/?id=0be8abebbd476395ee73f4a83d4988dc9958f83c git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git git fetch --no-tags driver-core kobject-const-2 git checkout 0be8abebbd476395ee73f4a83d4988dc9958f83c # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mm/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Link: https://lore.kernel.org/oe-kbuild-all/202302100601.wZtQDBrU-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): arch/arm/mm/dma-mapping.c: In function 'arm_setup_iommu_dma_ops': >> arch/arm/mm/dma-mapping.c:1713:47: warning: passing argument 1 of 'arm_iommu_create_mapping' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1713 | mapping = arm_iommu_create_mapping(dev->bus, dma_base, size); | ~~~^~~~~ arch/arm/mm/dma-mapping.c:1543:43: note: expected 'struct bus_type *' but argument is of type 'const struct bus_type *' 1543 | arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, u64 size) | ~~~~~~~~~~~~~~~~~^~~ vim +1713 arch/arm/mm/dma-mapping.c 6fe367580339a3a Hiroshi Doyu 2013-01-24 1707 ae626eb97376148 Christoph Hellwig 2022-04-19 1708 static void arm_setup_iommu_dma_ops(struct device *dev, u64 dma_base, u64 size, ae626eb97376148 Christoph Hellwig 2022-04-19 1709 const struct iommu_ops *iommu, bool coherent) 4bb25789ed28228 Will Deacon 2014-08-27 1710 { 4bb25789ed28228 Will Deacon 2014-08-27 1711 struct dma_iommu_mapping *mapping; 4bb25789ed28228 Will Deacon 2014-08-27 1712 4bb25789ed28228 Will Deacon 2014-08-27 @1713 mapping = arm_iommu_create_mapping(dev->bus, dma_base, size); 4bb25789ed28228 Will Deacon 2014-08-27 1714 if (IS_ERR(mapping)) { 4bb25789ed28228 Will Deacon 2014-08-27 1715 pr_warn("Failed to create %llu-byte IOMMU mapping for device %s\n", 4bb25789ed28228 Will Deacon 2014-08-27 1716 size, dev_name(dev)); ae626eb97376148 Christoph Hellwig 2022-04-19 1717 return; 4bb25789ed28228 Will Deacon 2014-08-27 1718 } 4bb25789ed28228 Will Deacon 2014-08-27 1719 eab8d6530cc0074 Laurent Pinchart 2015-01-23 1720 if (__arm_iommu_attach_device(dev, mapping)) { 4bb25789ed28228 Will Deacon 2014-08-27 1721 pr_warn("Failed to attached device %s to IOMMU_mapping\n", 4bb25789ed28228 Will Deacon 2014-08-27 1722 dev_name(dev)); 4bb25789ed28228 Will Deacon 2014-08-27 1723 arm_iommu_release_mapping(mapping); ae626eb97376148 Christoph Hellwig 2022-04-19 1724 return; 4bb25789ed28228 Will Deacon 2014-08-27 1725 } 4bb25789ed28228 Will Deacon 2014-08-27 1726 ae626eb97376148 Christoph Hellwig 2022-04-19 1727 set_dma_ops(dev, &iommu_ops); 4bb25789ed28228 Will Deacon 2014-08-27 1728 } 4bb25789ed28228 Will Deacon 2014-08-27 1729 :::::: The code at line 1713 was first introduced by commit :::::: 4bb25789ed28228a52c030bf28edb2fcdb214be8 arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops :::::: TO: Will Deacon <will.deacon@xxxxxxx> :::::: CC: Will Deacon <will.deacon@xxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel