mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org,
	Ulf Hansson <ulf.hansson@linaro.org>
Subject: drivers/mmc/host/sdhci-sprd.c:723:34: warning: unused variable 'sdhci_sprd_of_match'
Date: Fri, 20 Nov 2020 01:36:33 +0800	[thread overview]
Message-ID: <202011200127.9HJOgSmD-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c2e7554e1b85935d962127efa3c2a76483b0b3b6
commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
date:   2 months ago
config: x86_64-randconfig-r002-20201119 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b2613fb2f0f53691dd0211895afbb9413457fca7)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=54d8454436a205682bd89d66d8d9eedbc8452d15
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 54d8454436a205682bd89d66d8d9eedbc8452d15
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   drivers/mmc/host/sdhci-sprd.c:134:20: warning: unused function 'sdhci_sprd_writew' [-Wunused-function]
   static inline void sdhci_sprd_writew(struct sdhci_host *host, u16 val, int reg)
                      ^
>> drivers/mmc/host/sdhci-sprd.c:723:34: warning: unused variable 'sdhci_sprd_of_match' [-Wunused-const-variable]
   static const struct of_device_id sdhci_sprd_of_match[] = {
                                    ^
   2 warnings generated.

vim +/sdhci_sprd_of_match +723 drivers/mmc/host/sdhci-sprd.c

fb8bd90f83c4dd8 Chunyan Zhang 2018-08-30  722  
fb8bd90f83c4dd8 Chunyan Zhang 2018-08-30 @723  static const struct of_device_id sdhci_sprd_of_match[] = {
fb8bd90f83c4dd8 Chunyan Zhang 2018-08-30  724  	{ .compatible = "sprd,sdhci-r11", },
fb8bd90f83c4dd8 Chunyan Zhang 2018-08-30  725  	{ }
fb8bd90f83c4dd8 Chunyan Zhang 2018-08-30  726  };
fb8bd90f83c4dd8 Chunyan Zhang 2018-08-30  727  MODULE_DEVICE_TABLE(of, sdhci_sprd_of_match);
fb8bd90f83c4dd8 Chunyan Zhang 2018-08-30  728  

:::::: The code at line 723 was first introduced by commit
:::::: fb8bd90f83c4dd86bc7fdae406152d63c5852f92 mmc: sdhci-sprd: Add Spreadtrum's initial host controller

:::::: TO: Chunyan Zhang <chunyan.zhang@unisoc.com>
:::::: CC: Ulf Hansson <ulf.hansson@linaro.org>

---
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: 35538 bytes --]

                 reply	other threads:[~2020-11-19 17:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202011200127.9HJOgSmD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ulf.hansson@linaro.org \
    /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

Powered by JetHome