tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git x86/vt-d head: 69cf449166987d9a041020be6422ee7bf94a7228 commit: 57dbf81f50c82a0ad895a57828ad1ab539785a25 [23/44] iommu/mediatek-v1 Convert to probe/release_device() call-backs config: arm-allyesconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 57dbf81f50c82a0ad895a57828ad1ab539785a25 # 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: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/iommu/mtk_iommu_v1.c: In function 'mtk_iommu_release_device': >> drivers/iommu/mtk_iommu_v1.c:467:25: warning: variable 'data' set but not used [-Wunused-but-set-variable] 467 | struct mtk_iommu_data *data; | ^~~~ vim +/data +467 drivers/iommu/mtk_iommu_v1.c b17336c55d8928c4 Honghui Zhang 2016-06-08 463 57dbf81f50c82a0a Joerg Roedel 2020-04-29 464 static void mtk_iommu_release_device(struct device *dev) b17336c55d8928c4 Honghui Zhang 2016-06-08 465 { a9bf2eec5a6fc01a Joerg Roedel 2018-11-29 466 struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); 6f66ea099fc2f31d Joerg Roedel 2017-03-31 @467 struct mtk_iommu_data *data; 6f66ea099fc2f31d Joerg Roedel 2017-03-31 468 a9bf2eec5a6fc01a Joerg Roedel 2018-11-29 469 if (!fwspec || fwspec->ops != &mtk_iommu_ops) b17336c55d8928c4 Honghui Zhang 2016-06-08 470 return; b17336c55d8928c4 Honghui Zhang 2016-06-08 471 3524b5592cad638b Joerg Roedel 2020-03-26 472 data = dev_iommu_priv_get(dev); 84672f192671e64e Robin Murphy 2016-10-17 473 iommu_fwspec_free(dev); b17336c55d8928c4 Honghui Zhang 2016-06-08 474 } b17336c55d8928c4 Honghui Zhang 2016-06-08 475 :::::: The code at line 467 was first introduced by commit :::::: 6f66ea099fc2f31d31d6cd39f3b13b23bdeb6196 iommu/mediatek: Teach MTK-IOMMUv1 about 'struct iommu_device' :::::: TO: Joerg Roedel :::::: CC: Joerg Roedel --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org