[arm-platforms:irq/gpio-handler-data 25/37] drivers/iommu/apple-dart.c:186:37: error: 'apple_dart_tlb_ops' defined but not used

kernel test robot lkp at intel.com
Thu Sep 30 04:31:43 PDT 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/gpio-handler-data
head:   abe5890b12c34b929be59373a9b78d937b9bf290
commit: 91ce249c740186beca41a68c55c3d637e7b0dad7 [25/37] iommu/dart: Remove iommu_flush_ops
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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/maz/arm-platforms.git/commit/?id=91ce249c740186beca41a68c55c3d637e7b0dad7
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms irq/gpio-handler-data
        git checkout 91ce249c740186beca41a68c55c3d637e7b0dad7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/iommu/apple-dart.c:186:37: error: 'apple_dart_tlb_ops' defined but not used [-Werror=unused-const-variable=]
     186 | static const struct iommu_flush_ops apple_dart_tlb_ops;
         |                                     ^~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/apple_dart_tlb_ops +186 drivers/iommu/apple-dart.c

46d1fb072e76b1 Sven Peter 2021-08-03  170  
46d1fb072e76b1 Sven Peter 2021-08-03  171  /*
46d1fb072e76b1 Sven Peter 2021-08-03  172   * Helper macro to iterate over apple_dart_master_cfg.stream_maps and
46d1fb072e76b1 Sven Peter 2021-08-03  173   * apple_dart_domain.stream_maps
46d1fb072e76b1 Sven Peter 2021-08-03  174   *
46d1fb072e76b1 Sven Peter 2021-08-03  175   * @i int used as loop variable
46d1fb072e76b1 Sven Peter 2021-08-03  176   * @base pointer to base struct (apple_dart_master_cfg or apple_dart_domain)
46d1fb072e76b1 Sven Peter 2021-08-03  177   * @stream pointer to the apple_dart_streams struct for each loop iteration
46d1fb072e76b1 Sven Peter 2021-08-03  178   */
46d1fb072e76b1 Sven Peter 2021-08-03  179  #define for_each_stream_map(i, base, stream_map)                               \
46d1fb072e76b1 Sven Peter 2021-08-03  180  	for (i = 0, stream_map = &(base)->stream_maps[0];                      \
46d1fb072e76b1 Sven Peter 2021-08-03  181  	     i < MAX_DARTS_PER_DEVICE && stream_map->dart;                     \
46d1fb072e76b1 Sven Peter 2021-08-03  182  	     stream_map = &(base)->stream_maps[++i])
46d1fb072e76b1 Sven Peter 2021-08-03  183  
46d1fb072e76b1 Sven Peter 2021-08-03  184  static struct platform_driver apple_dart_driver;
46d1fb072e76b1 Sven Peter 2021-08-03  185  static const struct iommu_ops apple_dart_iommu_ops;
46d1fb072e76b1 Sven Peter 2021-08-03 @186  static const struct iommu_flush_ops apple_dart_tlb_ops;
46d1fb072e76b1 Sven Peter 2021-08-03  187  

:::::: The code at line 186 was first introduced by commit
:::::: 46d1fb072e76b161b0fb1ada9e37bf7e4d1f123f iommu/dart: Add DART iommu driver

:::::: TO: Sven Peter <sven at svenpeter.dev>
:::::: CC: Joerg Roedel <jroedel at suse.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 69176 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210930/0e3e5330/attachment-0001.gz>


More information about the linux-arm-kernel mailing list