iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [iommu:x86/vt-d 23/44] drivers/iommu/mtk_iommu_v1.c:467:25: warning: variable 'data' set but not used
@ 2020-05-19  6:21 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-19  6:21 UTC (permalink / raw)
  To: Joerg Roedel; +Cc: iommu, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2422 bytes --]

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 <lkp@intel.com>

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 <jroedel@suse.de>
:::::: CC: Joerg Roedel <jroedel@suse.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 73999 bytes --]

[-- Attachment #3: Type: text/plain, Size: 156 bytes --]

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-19  6:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19  6:21 [iommu:x86/vt-d 23/44] drivers/iommu/mtk_iommu_v1.c:467:25: warning: variable 'data' set but not used kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).