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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 28 Sep 2020 04:44:43 +0800
From:   kernel test robot <lkp@...el.com>
To:     周琰杰 (Zhou Yanjie) 
        <zhouyanjie@...yeetech.com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, Felipe Balbi <balbi@...nel.org>,
        漆鹏振 (Qi Pengzhen) 
        <aric.pzqi@...enic.com>
Subject: drivers/usb/phy/phy-jz4770.c:278:34: warning: unused variable
 'ingenic_usb_phy_of_matches'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   16bc1d5432ebd8e50e480eb300fd2b84afa28286
commit: 2a6c0b82e65128c73b5102e00e031c5e58bb3504 USB: PHY: JZ4770: Add support for new Ingenic SoCs.
date:   9 weeks ago
config: x86_64-randconfig-a011-20200928 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6d374cf78c8a80a0bbfc7ce9bc80b3f183f44c80)
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=2a6c0b82e65128c73b5102e00e031c5e58bb3504
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2a6c0b82e65128c73b5102e00e031c5e58bb3504
        # 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@...el.com>

All warnings (new ones prefixed by >>):

   drivers/usb/phy/phy-jz4770.c:179:9: warning: variable 'reg' is uninitialized when used here [-Wuninitialized]
           writel(reg & ~USBPCR_POR, priv->base + REG_USBPCR_OFFSET);
                  ^~~
   drivers/usb/phy/phy-jz4770.c:161:9: note: initialize the variable 'reg' to silence this warning
           u32 reg;
                  ^
                   = 0
>> drivers/usb/phy/phy-jz4770.c:278:34: warning: unused variable 'ingenic_usb_phy_of_matches' [-Wunused-const-variable]
   static const struct of_device_id ingenic_usb_phy_of_matches[] = {
                                    ^
   2 warnings generated.

vim +/ingenic_usb_phy_of_matches +278 drivers/usb/phy/phy-jz4770.c

   277	
 > 278	static const struct of_device_id ingenic_usb_phy_of_matches[] = {
   279		{ .compatible = "ingenic,jz4770-phy", .data = &jz4770_soc_info },
   280		{ .compatible = "ingenic,jz4780-phy", .data = &jz4780_soc_info },
   281		{ .compatible = "ingenic,x1000-phy", .data = &x1000_soc_info },
   282		{ .compatible = "ingenic,x1830-phy", .data = &x1830_soc_info },
   283		{ /* sentinel */ }
   284	};
   285	MODULE_DEVICE_TABLE(of, ingenic_usb_phy_of_matches);
   286	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (37736 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ