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:   Tue, 29 Mar 2022 13:20:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Stephan Gerhold <stephan@...hold.net>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Vinod Koul <vkoul@...nel.org>,
        Hans de Goede <hdegoede@...hat.com>
Subject: drivers/phy/ti/phy-tusb1210.c:158:12: sparse: sparse: symbol
 'tusb1210_chg_det_states' was not declared. Should it be static?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1930a6e739c4b4a654a69164dbe39e554d228915
commit: 48969a5623ed918713552e2b4f9d391c89b5e838 phy: ti: tusb1210: Add charger detection
date:   5 weeks ago
config: i386-randconfig-s001-20220328 (https://download.01.org/0day-ci/archive/20220329/202203291321.E3lqXEcg-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=48969a5623ed918713552e2b4f9d391c89b5e838
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 48969a5623ed918713552e2b4f9d391c89b5e838
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/phy/ti/

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


sparse warnings: (new ones prefixed by >>)
>> drivers/phy/ti/phy-tusb1210.c:158:12: sparse: sparse: symbol 'tusb1210_chg_det_states' was not declared. Should it be static?

vim +/tusb1210_chg_det_states +158 drivers/phy/ti/phy-tusb1210.c

   156	
   157	#ifdef CONFIG_POWER_SUPPLY
 > 158	const char * const tusb1210_chg_det_states[] = {
   159		"CHG_DET_CONNECTING",
   160		"CHG_DET_START_DET",
   161		"CHG_DET_READ_DET",
   162		"CHG_DET_FINISH_DET",
   163		"CHG_DET_CONNECTED",
   164		"CHG_DET_DISCONNECTING",
   165		"CHG_DET_DISCONNECTING_DONE",
   166		"CHG_DET_DISCONNECTED",
   167	};
   168	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ