linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sven Peter <sven@svenpeter.dev>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org,
	Marc Zyngier <maz@kernel.org>
Subject: [arm-platforms:irq/gpio-handler-data 25/37] drivers/iommu/apple-dart.c:186:37: error: 'apple_dart_tlb_ops' defined but not used
Date: Thu, 30 Sep 2021 19:31:43 +0800	[thread overview]
Message-ID: <202109301936.qkmdU0zu-lkp@intel.com> (raw)

[-- 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

             reply	other threads:[~2021-09-30 11:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 11:31 kernel test robot [this message]
2021-09-30 12:47 ` [arm-platforms:irq/gpio-handler-data 25/37] drivers/iommu/apple-dart.c:186:37: error: 'apple_dart_tlb_ops' defined but not used Marc Zyngier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202109301936.qkmdU0zu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maz@kernel.org \
    --cc=sven@svenpeter.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).