linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/mmc/host/sunxi-mmc.c:1181:34: warning: unused variable 'sunxi_mmc_of_match'
@ 2020-10-26  6:00 kernel test robot
  2020-10-26 11:35 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-10-26  6:00 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: kbuild-all, clang-built-linux, linux-kernel, Ulf Hansson

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

Hi Krzysztof,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3650b228f83adda7e5ee532e2b90429c03f7b9ec
commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
date:   7 weeks ago
config: x86_64-randconfig-r036-20201026 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project f2c25c70791de95d2466e09b5b58fc37f6ccd7a4)
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/sunxi-mmc.c:1181:34: warning: unused variable 'sunxi_mmc_of_match' [-Wunused-const-variable]
   static const struct of_device_id sunxi_mmc_of_match[] = {
                                    ^
   1 warning generated.

vim +/sunxi_mmc_of_match +1181 drivers/mmc/host/sunxi-mmc.c

4fb3ce07eafa9d Maxime Ripard 2017-01-27  1180  
86a93317ed71f9 Hans de Goede 2016-07-30 @1181  static const struct of_device_id sunxi_mmc_of_match[] = {
86a93317ed71f9 Hans de Goede 2016-07-30  1182  	{ .compatible = "allwinner,sun4i-a10-mmc", .data = &sun4i_a10_cfg },
86a93317ed71f9 Hans de Goede 2016-07-30  1183  	{ .compatible = "allwinner,sun5i-a13-mmc", .data = &sun5i_a13_cfg },
b465646ef41f2f Hans de Goede 2016-07-30  1184  	{ .compatible = "allwinner,sun7i-a20-mmc", .data = &sun7i_a20_cfg },
ac98caefe18ab8 Chen-Yu Tsai  2017-07-24  1185  	{ .compatible = "allwinner,sun8i-a83t-emmc", .data = &sun8i_a83t_emmc_cfg },
86a93317ed71f9 Hans de Goede 2016-07-30  1186  	{ .compatible = "allwinner,sun9i-a80-mmc", .data = &sun9i_a80_cfg },
e1b8dfd1b1c61b Icenowy Zheng 2016-08-05  1187  	{ .compatible = "allwinner,sun50i-a64-mmc", .data = &sun50i_a64_cfg },
4fb3ce07eafa9d Maxime Ripard 2017-01-27  1188  	{ .compatible = "allwinner,sun50i-a64-emmc", .data = &sun50i_a64_emmc_cfg },
86a93317ed71f9 Hans de Goede 2016-07-30  1189  	{ /* sentinel */ }
86a93317ed71f9 Hans de Goede 2016-07-30  1190  };
86a93317ed71f9 Hans de Goede 2016-07-30  1191  MODULE_DEVICE_TABLE(of, sunxi_mmc_of_match);
86a93317ed71f9 Hans de Goede 2016-07-30  1192  

:::::: The code at line 1181 was first introduced by commit
:::::: 86a93317ed71f9ad8bca7baff12930c47c235f80 mmc: sunxi: Introduce a sunxi_mmc_cfg struct

:::::: TO: Hans de Goede <hdegoede@redhat.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: 40739 bytes --]

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

* Re: drivers/mmc/host/sunxi-mmc.c:1181:34: warning: unused variable 'sunxi_mmc_of_match'
  2020-10-26  6:00 drivers/mmc/host/sunxi-mmc.c:1181:34: warning: unused variable 'sunxi_mmc_of_match' kernel test robot
@ 2020-10-26 11:35 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2020-10-26 11:35 UTC (permalink / raw)
  To: kernel test robot
  Cc: kbuild-all, clang-built-linux, linux-kernel, Ulf Hansson

On Mon, 26 Oct 2020 at 07:01, kernel test robot <lkp@intel.com> wrote:
>
> Hi Krzysztof,
>
> First bad commit (maybe != root cause):
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   3650b228f83adda7e5ee532e2b90429c03f7b9ec
> commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers
> date:   7 weeks ago
> config: x86_64-randconfig-r036-20201026 (attached as .config)
> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project f2c25c70791de95d2466e09b5b58fc37f6ccd7a4)
> 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/sunxi-mmc.c:1181:34: warning: unused variable 'sunxi_mmc_of_match' [-Wunused-const-variable]
>    static const struct of_device_id sunxi_mmc_of_match[] = {

I'll send a fix.

Best regards,
Krzysztof

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

end of thread, other threads:[~2020-10-26 11:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26  6:00 drivers/mmc/host/sunxi-mmc.c:1181:34: warning: unused variable 'sunxi_mmc_of_match' kernel test robot
2020-10-26 11:35 ` Krzysztof Kozlowski

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