linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [arm-platforms:irq/gpio-handler-data 25/37] drivers/iommu/apple-dart.c:186:37: error: 'apple_dart_tlb_ops' defined but not used
@ 2021-09-30 11:31 kernel test robot
  2021-09-30 12:47 ` Marc Zyngier
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-09-30 11:31 UTC (permalink / raw)
  To: Sven Peter; +Cc: kbuild-all, linux-arm-kernel, Marc Zyngier

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

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@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@svenpeter.dev>
:::::: 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: 69176 bytes --]

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [arm-platforms:irq/gpio-handler-data 25/37] drivers/iommu/apple-dart.c:186:37: error: 'apple_dart_tlb_ops' defined but not used
  2021-09-30 11:31 [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
@ 2021-09-30 12:47 ` Marc Zyngier
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Zyngier @ 2021-09-30 12:47 UTC (permalink / raw)
  To: kernel test robot; +Cc: Sven Peter, kbuild-all, linux-arm-kernel

On Thu, 30 Sep 2021 12:31:43 +0100,
kernel test robot <lkp@intel.com> wrote:
> 
> [1  <text/plain; us-ascii (7bit)>]
> 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@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

[...]

Time to take this branch down, as it was only there to prototype stuff.

	M.

-- 
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-30 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-30 11:31 [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
2021-09-30 12:47 ` Marc Zyngier

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).