linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 939/4884] drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: sparse: sparse: incorrect type in initializer (different base types)
@ 2023-12-05 19:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-05 19:46 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: oe-kbuild-all, Linux Memory Management List, Bjorn Andersson,
	Dmitry Baryshkov

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0f5f12ac05f36f117e793656c3f560625e927f1b
commit: 086fdb48bc65d6fde0f0e7d42dbfb3c00ea52628 [939/4884] soc: qcom: add ADSP PDCharger ULOG driver
config: i386-randconfig-061-20231206 (https://download.01.org/0day-ci/archive/20231206/202312060355.M0eJtq4X-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312060355.M0eJtq4X-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312060355.M0eJtq4X-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le32 [usertype] owner @@     got int @@
   drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: sparse:     expected restricted __le32 [usertype] owner
   drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: sparse:     got int
>> drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le32 [usertype] type @@     got int @@
   drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: sparse:     expected restricted __le32 [usertype] type
   drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: sparse:     got int
>> drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le32 [usertype] opcode @@     got int @@
   drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: sparse:     expected restricted __le32 [usertype] opcode
   drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: sparse:     got int

vim +57 drivers/soc/qcom/pmic_pdcharger_ulog.c

    52	
    53	static int pmic_pdcharger_ulog_request(struct pmic_pdcharger_ulog *pg)
    54	{
    55		struct get_ulog_req_msg req_msg = {
    56			.hdr = {
  > 57				.owner = MSG_OWNER_CHG_ULOG,
  > 58				.type = MSG_TYPE_REQ_RESP,
  > 59				.opcode = GET_CHG_ULOG_REQ
    60			},
    61			.log_size = MAX_ULOG_SIZE
    62		};
    63	
    64		return pmic_pdcharger_ulog_write_async(pg, &req_msg, sizeof(req_msg));
    65	}
    66	

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-05 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-05 19:46 [linux-next:master 939/4884] drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: sparse: sparse: incorrect type in initializer (different base types) 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