[soc:multiplatform-misc-5.18 12/13] arch/arm/mach-orion/dove-common.c:87:40: warning: variable 'gephy' set but not used

kernel test robot lkp at intel.com
Thu Apr 7 00:53:27 PDT 2022


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git multiplatform-misc-5.18
head:   a2677c00b0f03b8cad961f785941ca257f454df3
commit: 4e61a655e496f6225a146264a3dbc94c790870a6 [12/13] ARM: orion/mv78xx0/dove: move to a common directory
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220407/202204071544.veNGwkfr-lkp@intel.com/config)
compiler: arm-linux-gnueabi-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/soc/soc.git/commit/?id=4e61a655e496f6225a146264a3dbc94c790870a6
        git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
        git fetch --no-tags soc multiplatform-misc-5.18
        git checkout 4e61a655e496f6225a146264a3dbc94c790870a6
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

   arch/arm/mach-orion/dove-common.c: In function 'dove_clk_init':
>> arch/arm/mach-orion/dove-common.c:87:40: warning: variable 'gephy' set but not used [-Wunused-but-set-variable]
      87 |         struct clk *xor0, *xor1, *ge, *gephy;
         |                                        ^~~~~


vim +/gephy +87 arch/arm/mach-orion/dove-common.c

521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   82  
5817d10b8b8a60 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   83  static void __init dove_clk_init(void)
2f129bf4aab684 arch/arm/mach-dove/common.c Andrew Lunn           2011-12-15   84  {
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   85  	struct clk *usb0, *usb1, *sata, *pex0, *pex1, *sdio0, *sdio1;
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   86  	struct clk *nand, *camera, *i2s0, *i2s1, *crypto, *ac97, *pdma;
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  @87  	struct clk *xor0, *xor1, *ge, *gephy;
4574b886698dfa arch/arm/mach-dove/common.c Andrew Lunn           2012-04-06   88  
3a1a4559624a51 arch/arm/mach-dove/common.c Stephen Boyd          2016-04-19   89  	tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, dove_tclk);
4574b886698dfa arch/arm/mach-dove/common.c Andrew Lunn           2012-04-06   90  
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   91  	usb0 = dove_register_gate("usb0", "tclk", CLOCK_GATING_BIT_USB0);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   92  	usb1 = dove_register_gate("usb1", "tclk", CLOCK_GATING_BIT_USB1);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   93  	sata = dove_register_gate("sata", "tclk", CLOCK_GATING_BIT_SATA);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   94  	pex0 = dove_register_gate("pex0", "tclk", CLOCK_GATING_BIT_PCIE0);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   95  	pex1 = dove_register_gate("pex1", "tclk", CLOCK_GATING_BIT_PCIE1);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   96  	sdio0 = dove_register_gate("sdio0", "tclk", CLOCK_GATING_BIT_SDIO0);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   97  	sdio1 = dove_register_gate("sdio1", "tclk", CLOCK_GATING_BIT_SDIO1);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   98  	nand = dove_register_gate("nand", "tclk", CLOCK_GATING_BIT_NAND);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15   99  	camera = dove_register_gate("camera", "tclk", CLOCK_GATING_BIT_CAMERA);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  100  	i2s0 = dove_register_gate("i2s0", "tclk", CLOCK_GATING_BIT_I2S0);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  101  	i2s1 = dove_register_gate("i2s1", "tclk", CLOCK_GATING_BIT_I2S1);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  102  	crypto = dove_register_gate("crypto", "tclk", CLOCK_GATING_BIT_CRYPTO);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  103  	ac97 = dove_register_gate("ac97", "tclk", CLOCK_GATING_BIT_AC97);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  104  	pdma = dove_register_gate("pdma", "tclk", CLOCK_GATING_BIT_PDMA);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  105  	xor0 = dove_register_gate("xor0", "tclk", CLOCK_GATING_BIT_XOR0);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  106  	xor1 = dove_register_gate("xor1", "tclk", CLOCK_GATING_BIT_XOR1);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  107  	gephy = dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  108  	ge = dove_register_gate("ge", "gephy", CLOCK_GATING_BIT_GBE);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  109  
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  110  	orion_clkdev_add(NULL, "orion_spi.0", tclk);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  111  	orion_clkdev_add(NULL, "orion_spi.1", tclk);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  112  	orion_clkdev_add(NULL, "orion_wdt", tclk);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  113  	orion_clkdev_add(NULL, "mv64xxx_i2c.0", tclk);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  114  
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  115  	orion_clkdev_add(NULL, "orion-ehci.0", usb0);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  116  	orion_clkdev_add(NULL, "orion-ehci.1", usb1);
3fbcd3d0a04d8f arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-09-25  117  	orion_clkdev_add(NULL, "mv643xx_eth_port.0", ge);
3fbcd3d0a04d8f arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-09-25  118  	orion_clkdev_add(NULL, "sata_mv.0", sata);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  119  	orion_clkdev_add("0", "pcie", pex0);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  120  	orion_clkdev_add("1", "pcie", pex1);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  121  	orion_clkdev_add(NULL, "sdhci-dove.0", sdio0);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  122  	orion_clkdev_add(NULL, "sdhci-dove.1", sdio1);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  123  	orion_clkdev_add(NULL, "orion_nand", nand);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  124  	orion_clkdev_add(NULL, "cafe1000-ccic.0", camera);
64ddf1f89cd7a4 arch/arm/mach-dove/common.c Russell King          2013-08-04  125  	orion_clkdev_add(NULL, "mvebu-audio.0", i2s0);
64ddf1f89cd7a4 arch/arm/mach-dove/common.c Russell King          2013-08-04  126  	orion_clkdev_add(NULL, "mvebu-audio.1", i2s1);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  127  	orion_clkdev_add(NULL, "mv_crypto", crypto);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  128  	orion_clkdev_add(NULL, "dove-ac97", ac97);
521674718af0f2 arch/arm/mach-dove/common.c Sebastian Hesselbarth 2012-08-15  129  	orion_clkdev_add(NULL, "dove-pdma", pdma);
0dddee7a7d4219 arch/arm/mach-dove/common.c Thomas Petazzoni      2012-10-30  130  	orion_clkdev_add(NULL, MV_XOR_NAME ".0", xor0);
0dddee7a7d4219 arch/arm/mach-dove/common.c Thomas Petazzoni      2012-10-30  131  	orion_clkdev_add(NULL, MV_XOR_NAME ".1", xor1);
2f129bf4aab684 arch/arm/mach-dove/common.c Andrew Lunn           2011-12-15  132  }
2f129bf4aab684 arch/arm/mach-dove/common.c Andrew Lunn           2011-12-15  133  

:::::: The code at line 87 was first introduced by commit
:::::: 521674718af0f20fada7311a74c3f8fe23767d55 ARM: dove: add clock gating control

:::::: TO: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
:::::: CC: Jason Cooper <jason at lakedaemon.net>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



More information about the linux-arm-kernel mailing list