All of lore.kernel.org
 help / color / mirror / Atom feed
* [pengutronix:mfe/v6.10/topic/touchscreen-axiom 6/6] drivers/input/touchscreen/touchnetix_axiom.c:594:69: sparse: sparse: incorrect type in initializer (different base types)
@ 2024-09-07  0:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-07  0:35 UTC (permalink / raw)
  To: Marco Felsch; +Cc: oe-kbuild-all, Lucas Stach

tree:   https://git.pengutronix.de/git/linux-0-day mfe/v6.10/topic/touchscreen-axiom
head:   24a4e77c6d046026ad63145d5a5a71bca496da45
commit: 24a4e77c6d046026ad63145d5a5a71bca496da45 [6/6] Input: Add TouchNetix aXiom I2C Touchscreen support
config: sparc-randconfig-r113-20240906 (https://download.01.org/0day-ci/archive/20240907/202409070843.gi38ZcOG-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240907/202409070843.gi38ZcOG-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/202409070843.gi38ZcOG-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/input/touchscreen/touchnetix_axiom.c:594:69: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] command @@     got unsigned short [usertype] cmd @@
   drivers/input/touchscreen/touchnetix_axiom.c:594:69: sparse:     expected restricted __le16 [usertype] command
   drivers/input/touchscreen/touchnetix_axiom.c:594:69: sparse:     got unsigned short [usertype] cmd
>> drivers/input/touchscreen/touchnetix_axiom.c:626:21: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [usertype] command @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:626:21: sparse:     expected restricted __le16 [usertype] command
   drivers/input/touchscreen/touchnetix_axiom.c:626:21: sparse:     got int
>> drivers/input/touchscreen/touchnetix_axiom.c:628:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:628:27: sparse:     expected restricted __le16
   drivers/input/touchscreen/touchnetix_axiom.c:628:27: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:629:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:629:27: sparse:     expected restricted __le16
   drivers/input/touchscreen/touchnetix_axiom.c:629:27: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:656:21: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [usertype] command @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:656:21: sparse:     expected restricted __le16 [usertype] command
   drivers/input/touchscreen/touchnetix_axiom.c:656:21: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:687:21: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [usertype] command @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:687:21: sparse:     expected restricted __le16 [usertype] command
   drivers/input/touchscreen/touchnetix_axiom.c:687:21: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:688:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:688:27: sparse:     expected restricted __le16
   drivers/input/touchscreen/touchnetix_axiom.c:688:27: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:689:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:689:27: sparse:     expected restricted __le16
   drivers/input/touchscreen/touchnetix_axiom.c:689:27: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:690:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:690:27: sparse:     expected restricted __le16
   drivers/input/touchscreen/touchnetix_axiom.c:690:27: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:713:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:713:27: sparse:     expected restricted __le16
   drivers/input/touchscreen/touchnetix_axiom.c:713:27: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:720:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:720:27: sparse:     expected restricted __le16
   drivers/input/touchscreen/touchnetix_axiom.c:720:27: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c:727:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 @@     got int @@
   drivers/input/touchscreen/touchnetix_axiom.c:727:27: sparse:     expected restricted __le16
   drivers/input/touchscreen/touchnetix_axiom.c:727:27: sparse:     got int
   drivers/input/touchscreen/touchnetix_axiom.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
   include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false
   include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false

vim +594 drivers/input/touchscreen/touchnetix_axiom.c

   590	
   591	static int
   592	axiom_u02_rev1_send_single_cmd(struct axiom_data *ts, u16 cmd)
   593	{
 > 594		struct axiom_u02_rev1_system_manager_msg msg = { .command = cmd };
   595	
   596		return axiom_u02_send_msg(ts, &msg, true);
   597	}
   598	
   599	static int axiom_u02_handshakenvm(struct axiom_data *ts)
   600	{
   601		return axiom_u02_rev1_send_single_cmd(ts, AXIOM_U02_REV1_CMD_HANDSHAKENVM);
   602	}
   603	
   604	static int axiom_u02_computecrc(struct axiom_data *ts)
   605	{
   606		return axiom_u02_rev1_send_single_cmd(ts, AXIOM_U02_REV1_CMD_COMPUTECRCS);
   607	}
   608	
   609	static int axiom_u02_stop(struct axiom_data *ts)
   610	{
   611		return axiom_u02_rev1_send_single_cmd(ts, AXIOM_U02_REV1_CMD_STOP);
   612	}
   613	
   614	static int axiom_u02_save_config(struct axiom_data *ts)
   615	{
   616		struct axiom_u02_rev1_system_manager_msg msg;
   617		struct device *dev = ts->dev;
   618		int ret;
   619	
   620		if (axiom_usage_rev(ts, AXIOM_U02) != 1 &&
   621		    axiom_usage_rev(ts, AXIOM_U02) != 2) {
   622			dev_err(dev, "Only u02 rev.1 and rev.2 are supported at the moment\n");
   623			return -EINVAL;
   624		}
   625	
 > 626		msg.command = AXIOM_U02_REV1_CMD_SAVEVLTLCFG2NVM;
   627		msg.parameters[1] = 0; /* Don't care */
 > 628		msg.parameters[1] = AXIOM_U02_REV1_PARAM1_SAVEVLTLCFG2NVM;
   629		msg.parameters[2] = AXIOM_U02_REV1_PARAM2_SAVEVLTLCFG2NVM;
   630	
   631		ret = axiom_u02_send_msg(ts, &msg, false);
   632		if (ret)
   633			return ret;
   634	
   635		/* Downstream axcfg.py waits for 2sec without checking U01 response */
   636		ret = wait_for_completion_timeout(&ts->nvm_write_done,
   637						  msecs_to_jiffies(2 * MSEC_PER_SEC));
   638		if (!ret)
   639			dev_err(ts->dev, "Error save volatile config timedout\n");
   640	
   641		return ret ? 0 : -ETIMEDOUT;
   642	}
   643	

-- 
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:[~2024-09-07  0:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-07  0:35 [pengutronix:mfe/v6.10/topic/touchscreen-axiom 6/6] drivers/input/touchscreen/touchnetix_axiom.c:594:69: sparse: sparse: incorrect type in initializer (different base types) kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.