From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [tobetter-linux:odroid-5.10.y 14/75] drivers/input/touchscreen/dwav-usb-mt.c:176:41: sparse: sparse: incorrect type in assignment (different base types)
Date: Wed, 04 Nov 2020 01:38:01 +0800 [thread overview]
Message-ID: <202011040159.toKcldpm-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 7101 bytes --]
tree: https://github.com/tobetter/linux odroid-5.10.y
head: 7ab821b3289f781553982e2cdc97d031e457bea0
commit: 28427fb2b1487c69cd3ce3cfc100fdd8d85d73d4 [14/75] ODROID-COMMON: input/touchscreen: Add D-WAV Multitouch driver.
config: sparc64-randconfig-s032-20201103 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-76-gf680124b-dirty
# https://github.com/tobetter/linux/commit/28427fb2b1487c69cd3ce3cfc100fdd8d85d73d4
git remote add tobetter-linux https://github.com/tobetter/linux
git fetch --no-tags tobetter-linux odroid-5.10.y
git checkout 28427fb2b1487c69cd3ce3cfc100fdd8d85d73d4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <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
161
162 static void dwav_usb_mt_process(struct dwav_usb_mt *dwav_usb_mt,
163 unsigned char *pkt, int len)
164 {
165 struct dwav_raw *dwav_raw = (struct dwav_raw *)pkt;
166 unsigned char bit_mask, cnt;
167
168 for (cnt = 0, bit_mask = 0x01;
169 cnt < DEV_INFO[dwav_usb_mt->dev_id].max_finger;
170 cnt++, bit_mask <<= 1) {
171 if ((dwav_raw->ids & bit_mask) && dwav_raw->press) {
172 dwav_usb_mt->finger[cnt].status = TS_EVENT_PRESS;
173 switch (cnt) {
174 case 0:
175 dwav_usb_mt->finger[cnt].x
> 176 = cpu_to_be16(dwav_raw->x1);
177 dwav_usb_mt->finger[cnt].y
> 178 = cpu_to_be16(dwav_raw->y1);
179 break;
180 case 1:
181 dwav_usb_mt->finger[cnt].x
182 = cpu_to_be16(dwav_raw->x2);
183 dwav_usb_mt->finger[cnt].y
184 = cpu_to_be16(dwav_raw->y2);
185 break;
186 case 2:
187 dwav_usb_mt->finger[cnt].x
188 = cpu_to_be16(dwav_raw->x3);
189 dwav_usb_mt->finger[cnt].y
190 = cpu_to_be16(dwav_raw->y3);
191 break;
192 case 3:
193 dwav_usb_mt->finger[cnt].x
194 = cpu_to_be16(dwav_raw->x4);
195 dwav_usb_mt->finger[cnt].y
196 = cpu_to_be16(dwav_raw->y4);
197 break;
198 case 4:
199 dwav_usb_mt->finger[cnt].x
200 = cpu_to_be16(dwav_raw->x5);
201 dwav_usb_mt->finger[cnt].y
202 = cpu_to_be16(dwav_raw->y5);
203 break;
204 default:
205 break;
206 }
207 } else {
208 if (dwav_usb_mt->finger[cnt].status == TS_EVENT_PRESS)
209 dwav_usb_mt->finger[cnt].status
210 = TS_EVENT_RELEASE;
211 else
212 dwav_usb_mt->finger[cnt].status
213 = TS_EVENT_UNKNOWN;
214 }
215 }
216 dwav_usb_mt_report(dwav_usb_mt);
217 }
218
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34552 bytes --]
next reply other threads:[~2020-11-03 17:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-03 17:38 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-11-04 1:29 [tobetter-linux:odroid-5.10.y 14/75] drivers/input/touchscreen/dwav-usb-mt.c:176:41: sparse: sparse: incorrect type in assignment (different base types) kernel test robot
2020-11-03 19:47 kernel test robot
2020-11-03 18:56 kernel test robot
2020-11-03 18:33 kernel test robot
2020-11-03 17:39 kernel test robot
2020-11-03 15:58 kernel test robot
2020-11-03 15:26 kernel test robot
2020-11-03 14:45 kernel test robot
2020-11-03 15:03 ` Li, Philip
2020-11-03 14:38 kernel test robot
2020-11-03 13:59 kernel test robot
2020-11-03 11:57 kernel test robot
2020-11-03 11:16 kernel test robot
2020-11-03 10:52 kernel test robot
2020-11-03 10:39 kernel test robot
2020-11-03 10:07 kernel test robot
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=202011040159.toKcldpm-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.