From: kernel test robot <lkp@intel.com>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: oe-kbuild-all@lists.linux.dev, Lucas Stach <l.stach@pengutronix.de>
Subject: [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)
Date: Sat, 7 Sep 2024 08:35:06 +0800 [thread overview]
Message-ID: <202409070843.gi38ZcOG-lkp@intel.com> (raw)
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
reply other threads:[~2024-09-07 0:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202409070843.gi38ZcOG-lkp@intel.com \
--to=lkp@intel.com \
--cc=l.stach@pengutronix.de \
--cc=m.felsch@pengutronix.de \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.