tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const head: de9d11ba9a2261b62a065a1b6539eecf8a6d81f5 commit: de9d11ba9a2261b62a065a1b6539eecf8a6d81f5 [122/122] driver core: platform: make platform_bus_type constant config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20230221/202302210708.PQqZ8mR4-lkp@xxxxxxxxx/config) compiler: powerpc-linux-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=de9d11ba9a2261b62a065a1b6539eecf8a6d81f5 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 git checkout de9d11ba9a2261b62a065a1b6539eecf8a6d81f5 # 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=powerpc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/ 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/202302210708.PQqZ8mR4-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): >> drivers/iommu/iommu.c:118:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 118 | &platform_bus_type, | ^ vim +/const +118 drivers/iommu/iommu.c b0119e870837dc Joerg Roedel 2017-02-01 116 c13dbc1e248549 Robin Murphy 2022-08-15 117 static struct bus_type * const iommu_buses[] = { c13dbc1e248549 Robin Murphy 2022-08-15 @118 &platform_bus_type, c13dbc1e248549 Robin Murphy 2022-08-15 119 #ifdef CONFIG_PCI c13dbc1e248549 Robin Murphy 2022-08-15 120 &pci_bus_type, c13dbc1e248549 Robin Murphy 2022-08-15 121 #endif c13dbc1e248549 Robin Murphy 2022-08-15 122 #ifdef CONFIG_ARM_AMBA c13dbc1e248549 Robin Murphy 2022-08-15 123 &amba_bustype, c13dbc1e248549 Robin Murphy 2022-08-15 124 #endif c13dbc1e248549 Robin Murphy 2022-08-15 125 #ifdef CONFIG_FSL_MC_BUS c13dbc1e248549 Robin Murphy 2022-08-15 126 &fsl_mc_bus_type, c13dbc1e248549 Robin Murphy 2022-08-15 127 #endif c13dbc1e248549 Robin Murphy 2022-08-15 128 #ifdef CONFIG_TEGRA_HOST1X_CONTEXT_BUS c13dbc1e248549 Robin Murphy 2022-08-15 129 &host1x_context_device_bus_type, c13dbc1e248549 Robin Murphy 2022-08-15 130 #endif c13dbc1e248549 Robin Murphy 2022-08-15 131 }; c13dbc1e248549 Robin Murphy 2022-08-15 132 :::::: The code at line 118 was first introduced by commit :::::: c13dbc1e24854908376c40ccaeb7a3a3c111e3af iommu: Always register bus notifiers :::::: TO: Robin Murphy <robin.murphy@xxxxxxx> :::::: CC: Joerg Roedel <jroedel@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