lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 2 Oct 2022 08:16:15 +0800
From:   kernel test robot <lkp@...el.com>
To:     Huacai Chen <chenhuacai@...ngson.cn>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [chenhuacai-loongson:loongarch-next 10/21]
 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c:86:33: warning:
 variable 'mdio_priv' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git loongarch-next
head:   c145c62399b789b70f8730e0e73f6dc4c2f9d320
commit: 85add6313234aab619257a11e682d40df69e2ed2 [10/21] LoongArch: Use TLB for ioremap()
config: loongarch-allmodconfig
compiler: loongarch64-linux-gcc (GCC) 12.1.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/chenhuacai/linux-loongson.git/commit/?id=85add6313234aab619257a11e682d40df69e2ed2
        git remote add chenhuacai-loongson https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git
        git fetch --no-tags chenhuacai-loongson loongarch-next
        git checkout 85add6313234aab619257a11e682d40df69e2ed2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/clk/mediatek/ drivers/gpu/drm/ drivers/misc/habanalabs/common/pci/ drivers/net/ethernet/freescale/enetc/ drivers/net/wireless/intersil/hostap/ drivers/scsi/aic94xx/ drivers/video/fbdev/ sound/soc/sof/intel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c: In function 'enetc_pci_mdio_remove':
>> drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c:86:33: warning: variable 'mdio_priv' set but not used [-Wunused-but-set-variable]
      86 |         struct enetc_mdio_priv *mdio_priv;
         |                                 ^~~~~~~~~
--
   drivers/net/wireless/intersil/hostap/hostap_pci.c: In function 'prism2_pci_remove':
>> drivers/net/wireless/intersil/hostap/hostap_pci.c:380:23: warning: variable 'mem_start' set but not used [-Wunused-but-set-variable]
     380 |         void __iomem *mem_start;
         |                       ^~~~~~~~~
--
   drivers/scsi/aic94xx/aic94xx_init.c: In function 'asd_unmap_memio':
>> drivers/scsi/aic94xx/aic94xx_init.c:111:34: warning: variable 'io_handle' set but not used [-Wunused-but-set-variable]
     111 |         struct asd_ha_addrspace *io_handle;
         |                                  ^~~~~~~~~
--
   drivers/video/fbdev/sstfb.c: In function 'sstfb_remove':
>> drivers/video/fbdev/sstfb.c:1463:27: warning: variable 'par' set but not used [-Wunused-but-set-variable]
    1463 |         struct sstfb_par *par;
         |                           ^~~
--
   sound/soc/sof/intel/hda.c: In function 'hda_dsp_probe':
>> sound/soc/sof/intel/hda.c:968:26: warning: variable 'bus' set but not used [-Wunused-but-set-variable]
     968 |         struct hdac_bus *bus;
         |                          ^~~
   sound/soc/sof/intel/hda.c: In function 'hda_dsp_remove':
   sound/soc/sof/intel/hda.c:1137:26: warning: unused variable 'bus' [-Wunused-variable]
    1137 |         struct hdac_bus *bus = sof_to_bus(sdev);
         |                          ^~~
--
   drivers/clk/mediatek/clk-pll.c: In function 'mtk_clk_unregister_plls':
>> drivers/clk/mediatek/clk-pll.c:437:23: warning: variable 'base' set but not used [-Wunused-but-set-variable]
     437 |         __iomem void *base = NULL;
         |                       ^~~~
--
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c: In function 'nv50_instobj_kmap':
>> drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:129:15: warning: variable 'emap' set but not used [-Wunused-but-set-variable]
     129 |         void *emap;
         |               ^~~~


vim +/mdio_priv +86 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c

231ece36f50df5 Claudiu Manoil     2019-08-01  82  
231ece36f50df5 Claudiu Manoil     2019-08-01  83  static void enetc_pci_mdio_remove(struct pci_dev *pdev)
231ece36f50df5 Claudiu Manoil     2019-08-01  84  {
231ece36f50df5 Claudiu Manoil     2019-08-01  85  	struct mii_bus *bus = pci_get_drvdata(pdev);
231ece36f50df5 Claudiu Manoil     2019-08-01 @86  	struct enetc_mdio_priv *mdio_priv;
231ece36f50df5 Claudiu Manoil     2019-08-01  87  
231ece36f50df5 Claudiu Manoil     2019-08-01  88  	mdiobus_unregister(bus);
231ece36f50df5 Claudiu Manoil     2019-08-01  89  	mdio_priv = bus->priv;
231ece36f50df5 Claudiu Manoil     2019-08-01  90  	iounmap(mdio_priv->hw->port);
18eeb4dea65cb5 Christophe JAILLET 2022-05-27  91  	pci_release_region(pdev, 0);
231ece36f50df5 Claudiu Manoil     2019-08-01  92  	pci_disable_device(pdev);
231ece36f50df5 Claudiu Manoil     2019-08-01  93  }
231ece36f50df5 Claudiu Manoil     2019-08-01  94  

:::::: The code at line 86 was first introduced by commit
:::::: 231ece36f50df5d0d648011c58d4255d112a8bbf enetc: Add mdio bus driver for the PCIe MDIO endpoint

:::::: TO: Claudiu Manoil <claudiu.manoil@....com>
:::::: CC: David S. Miller <davem@...emloft.net>

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

View attachment "config" of type "text/plain" (316795 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ