* drivers/phy/ti/phy-tusb1210.c:158:12: sparse: sparse: symbol 'tusb1210_chg_det_states' was not declared. Should it be static?
@ 2022-03-29 5:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-29 5:20 UTC (permalink / raw)
To: Stephan Gerhold; +Cc: kbuild-all, linux-kernel, Vinod Koul, Hans de Goede
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@intel.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-29 5:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-29 5:20 drivers/phy/ti/phy-tusb1210.c:158:12: sparse: sparse: symbol 'tusb1210_chg_det_states' was not declared. Should it be static? kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®