From: kernel test robot <lkp@intel.com>
To: Dongjin Kim <tobetter@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [tobetter:odroid-6.16.y 45/45] drivers/input/touchscreen/dwav-usb-mt.c:176:41: sparse: sparse: incorrect type in assignment (different base types)
Date: Sun, 27 Jul 2025 07:34:31 +0800 [thread overview]
Message-ID: <202507270745.ziCNW3ST-lkp@intel.com> (raw)
Hi Dongjin,
First bad commit (maybe != root cause):
tree: https://github.com/tobetter/linux odroid-6.16.y
head: 5970e23fb597e5a60b1284c83332aee45fb222d0
commit: 5970e23fb597e5a60b1284c83332aee45fb222d0 [45/45] squash! ODROID-COMMON: input/touchscreen: Add D-WAV Multitouch driver.
config: hexagon-randconfig-r122-20250727 (https://download.01.org/0day-ci/archive/20250727/202507270745.ziCNW3ST-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce: (https://download.01.org/0day-ci/archive/20250727/202507270745.ziCNW3ST-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/202507270745.ziCNW3ST-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/input/touchscreen/dwav-usb-mt.c:176:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int x @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:176:41: sparse: expected unsigned int x
drivers/input/touchscreen/dwav-usb-mt.c:176:41: sparse: got restricted __be16 [usertype]
>> drivers/input/touchscreen/dwav-usb-mt.c:178:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int y @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:178:41: sparse: expected unsigned int y
drivers/input/touchscreen/dwav-usb-mt.c:178:41: sparse: got restricted __be16 [usertype]
drivers/input/touchscreen/dwav-usb-mt.c:182:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int x @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:182:41: sparse: expected unsigned int x
drivers/input/touchscreen/dwav-usb-mt.c:182:41: sparse: got restricted __be16 [usertype]
drivers/input/touchscreen/dwav-usb-mt.c:184:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int y @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:184:41: sparse: expected unsigned int y
drivers/input/touchscreen/dwav-usb-mt.c:184:41: sparse: got restricted __be16 [usertype]
drivers/input/touchscreen/dwav-usb-mt.c:188:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int x @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:188:41: sparse: expected unsigned int x
drivers/input/touchscreen/dwav-usb-mt.c:188:41: sparse: got restricted __be16 [usertype]
drivers/input/touchscreen/dwav-usb-mt.c:190:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int y @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:190:41: sparse: expected unsigned int y
drivers/input/touchscreen/dwav-usb-mt.c:190:41: sparse: got restricted __be16 [usertype]
drivers/input/touchscreen/dwav-usb-mt.c:194:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int x @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:194:41: sparse: expected unsigned int x
drivers/input/touchscreen/dwav-usb-mt.c:194:41: sparse: got restricted __be16 [usertype]
drivers/input/touchscreen/dwav-usb-mt.c:196:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int y @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:196:41: sparse: expected unsigned int y
drivers/input/touchscreen/dwav-usb-mt.c:196:41: sparse: got restricted __be16 [usertype]
drivers/input/touchscreen/dwav-usb-mt.c:200:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int x @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:200:41: sparse: expected unsigned int x
drivers/input/touchscreen/dwav-usb-mt.c:200:41: sparse: got restricted __be16 [usertype]
drivers/input/touchscreen/dwav-usb-mt.c:202:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int y @@ got restricted __be16 [usertype] @@
drivers/input/touchscreen/dwav-usb-mt.c:202:41: sparse: expected unsigned int y
drivers/input/touchscreen/dwav-usb-mt.c:202:41: sparse: got restricted __be16 [usertype]
vim +176 drivers/input/touchscreen/dwav-usb-mt.c
804dbb7299c970 Hyeonki Hong 2020-03-05 161
804dbb7299c970 Hyeonki Hong 2020-03-05 162 static void dwav_usb_mt_process(struct dwav_usb_mt *dwav_usb_mt,
804dbb7299c970 Hyeonki Hong 2020-03-05 163 unsigned char *pkt, int len)
804dbb7299c970 Hyeonki Hong 2020-03-05 164 {
804dbb7299c970 Hyeonki Hong 2020-03-05 165 struct dwav_raw *dwav_raw = (struct dwav_raw *)pkt;
804dbb7299c970 Hyeonki Hong 2020-03-05 166 unsigned char bit_mask, cnt;
804dbb7299c970 Hyeonki Hong 2020-03-05 167
804dbb7299c970 Hyeonki Hong 2020-03-05 168 for (cnt = 0, bit_mask = 0x01;
804dbb7299c970 Hyeonki Hong 2020-03-05 169 cnt < DEV_INFO[dwav_usb_mt->dev_id].max_finger;
804dbb7299c970 Hyeonki Hong 2020-03-05 170 cnt++, bit_mask <<= 1) {
804dbb7299c970 Hyeonki Hong 2020-03-05 171 if ((dwav_raw->ids & bit_mask) && dwav_raw->press) {
804dbb7299c970 Hyeonki Hong 2020-03-05 172 dwav_usb_mt->finger[cnt].status = TS_EVENT_PRESS;
804dbb7299c970 Hyeonki Hong 2020-03-05 173 switch (cnt) {
804dbb7299c970 Hyeonki Hong 2020-03-05 174 case 0:
804dbb7299c970 Hyeonki Hong 2020-03-05 175 dwav_usb_mt->finger[cnt].x
804dbb7299c970 Hyeonki Hong 2020-03-05 @176 = cpu_to_be16(dwav_raw->x1);
804dbb7299c970 Hyeonki Hong 2020-03-05 177 dwav_usb_mt->finger[cnt].y
804dbb7299c970 Hyeonki Hong 2020-03-05 @178 = cpu_to_be16(dwav_raw->y1);
804dbb7299c970 Hyeonki Hong 2020-03-05 179 break;
804dbb7299c970 Hyeonki Hong 2020-03-05 180 case 1:
804dbb7299c970 Hyeonki Hong 2020-03-05 181 dwav_usb_mt->finger[cnt].x
804dbb7299c970 Hyeonki Hong 2020-03-05 182 = cpu_to_be16(dwav_raw->x2);
804dbb7299c970 Hyeonki Hong 2020-03-05 183 dwav_usb_mt->finger[cnt].y
804dbb7299c970 Hyeonki Hong 2020-03-05 184 = cpu_to_be16(dwav_raw->y2);
804dbb7299c970 Hyeonki Hong 2020-03-05 185 break;
804dbb7299c970 Hyeonki Hong 2020-03-05 186 case 2:
804dbb7299c970 Hyeonki Hong 2020-03-05 187 dwav_usb_mt->finger[cnt].x
804dbb7299c970 Hyeonki Hong 2020-03-05 188 = cpu_to_be16(dwav_raw->x3);
804dbb7299c970 Hyeonki Hong 2020-03-05 189 dwav_usb_mt->finger[cnt].y
804dbb7299c970 Hyeonki Hong 2020-03-05 190 = cpu_to_be16(dwav_raw->y3);
804dbb7299c970 Hyeonki Hong 2020-03-05 191 break;
804dbb7299c970 Hyeonki Hong 2020-03-05 192 case 3:
804dbb7299c970 Hyeonki Hong 2020-03-05 193 dwav_usb_mt->finger[cnt].x
804dbb7299c970 Hyeonki Hong 2020-03-05 194 = cpu_to_be16(dwav_raw->x4);
804dbb7299c970 Hyeonki Hong 2020-03-05 195 dwav_usb_mt->finger[cnt].y
804dbb7299c970 Hyeonki Hong 2020-03-05 196 = cpu_to_be16(dwav_raw->y4);
804dbb7299c970 Hyeonki Hong 2020-03-05 197 break;
804dbb7299c970 Hyeonki Hong 2020-03-05 198 case 4:
804dbb7299c970 Hyeonki Hong 2020-03-05 199 dwav_usb_mt->finger[cnt].x
804dbb7299c970 Hyeonki Hong 2020-03-05 200 = cpu_to_be16(dwav_raw->x5);
804dbb7299c970 Hyeonki Hong 2020-03-05 201 dwav_usb_mt->finger[cnt].y
804dbb7299c970 Hyeonki Hong 2020-03-05 202 = cpu_to_be16(dwav_raw->y5);
804dbb7299c970 Hyeonki Hong 2020-03-05 203 break;
804dbb7299c970 Hyeonki Hong 2020-03-05 204 default:
804dbb7299c970 Hyeonki Hong 2020-03-05 205 break;
804dbb7299c970 Hyeonki Hong 2020-03-05 206 }
804dbb7299c970 Hyeonki Hong 2020-03-05 207 } else {
804dbb7299c970 Hyeonki Hong 2020-03-05 208 if (dwav_usb_mt->finger[cnt].status == TS_EVENT_PRESS)
804dbb7299c970 Hyeonki Hong 2020-03-05 209 dwav_usb_mt->finger[cnt].status
804dbb7299c970 Hyeonki Hong 2020-03-05 210 = TS_EVENT_RELEASE;
804dbb7299c970 Hyeonki Hong 2020-03-05 211 else
804dbb7299c970 Hyeonki Hong 2020-03-05 212 dwav_usb_mt->finger[cnt].status
804dbb7299c970 Hyeonki Hong 2020-03-05 213 = TS_EVENT_UNKNOWN;
804dbb7299c970 Hyeonki Hong 2020-03-05 214 }
804dbb7299c970 Hyeonki Hong 2020-03-05 215 }
804dbb7299c970 Hyeonki Hong 2020-03-05 216 dwav_usb_mt_report(dwav_usb_mt);
804dbb7299c970 Hyeonki Hong 2020-03-05 217 }
804dbb7299c970 Hyeonki Hong 2020-03-05 218
:::::: The code at line 176 was first introduced by commit
:::::: 804dbb7299c970e3cb07ee5eac596f8ca42f620d ODROID-COMMON: input/touchscreen: Add D-WAV Multitouch driver.
:::::: TO: Hyeonki Hong <hhk7734@gmail.com>
:::::: CC: Dongjin Kim <tobetter@gmail.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-07-26 23: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=202507270745.ziCNW3ST-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tobetter@gmail.com \
/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.