Skip to contentSkip to conversation

drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c:196:30: sparse: sparse: symbol 'gaokun_ucsi_ops' was not declared. Should it be static?

DISCUSSION kernel test robot 1 participant 1 message Mar 4

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ecc64d2dc9ff9738d2a896beb68e02c2feaf9a02
commit: 00327d7f2c8c512c9b168daae02c8b989f79ec71 usb: typec: ucsi: add Huawei Matebook E Go ucsi driver
date:   11 months ago
config: mips-randconfig-r112-20260304 (https://download.01.org/0day-ci/archive/20260305/[email protected]/config)
compiler: mips64-linux-gcc (GCC) 14.3.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260305/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c:196:30: sparse: sparse: symbol 'gaokun_ucsi_ops' was not declared. Should it be static?

vim +/gaokun_ucsi_ops +196 drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c

195

 > 196	const struct ucsi_operations gaokun_ucsi_ops = {

197 .read_version = gaokun_ucsi_read_version,
198 .read_cci = gaokun_ucsi_read_cci,
199 .read_message_in = gaokun_ucsi_read_message_in,
200 .sync_control = ucsi_sync_control_common,
201 .async_control = gaokun_ucsi_async_control,
202 .update_connector = gaokun_ucsi_update_connector,
203 .connector_status = gaokun_ucsi_connector_status,
204 };
205

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki