[usb:usb-next 4/11] drivers/usb/typec/ucsi/ucsi_ccg.c:572:14: sparse: sparse: incorrect type in assignment (different base types)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
head:   179264157bbaf3d169b184160d0b5283f8a50e73
commit: 467399d989d799433ec7dd8da2ebbfbc70207d03 [4/11] usb: typec: ucsi: split read operation
config: hexagon-randconfig-r112-20240704 (https://download.01.org/0day-ci/archive/20240705/202407050600.HGza0qcn-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce: (https://download.01.org/0day-ci/archive/20240705/202407050600.HGza0qcn-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407050600.HGza0qcn-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/usb/typec/ucsi/ucsi_ccg.c:572:14: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __le32 [usertype] cci @@
   drivers/usb/typec/ucsi/ucsi_ccg.c:572:14: sparse:     expected unsigned int [usertype]
   drivers/usb/typec/ucsi/ucsi_ccg.c:572:14: sparse:     got restricted __le32 [usertype] cci

vim +572 drivers/usb/typec/ucsi/ucsi_ccg.c

   566	
   567	static int ucsi_ccg_read_cci(struct ucsi *ucsi, u32 *cci)
   568	{
   569		struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi);
   570	
   571		spin_lock(&uc->op_lock);
 > 572		*cci = uc->op_data.cci;
   573		spin_unlock(&uc->op_lock);
   574	
   575		return 0;
   576	}
   577	

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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux