* [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)
@ 2020-11-03 18:33 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 18:33 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-04 1:29 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-04 1:29 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 19:47 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 19:47 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 18:56 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 18:56 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 17:39 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 17:39 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 17:38 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 17:38 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 15:58 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 15:58 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 15:26 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 15:26 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [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)
2020-11-03 14:45 kernel test robot
@ 2020-11-03 15:03 ` Li, Philip
0 siblings, 0 replies; 17+ messages in thread
From: Li, Philip @ 2020-11-03 15:03 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 7756 bytes --]
> Subject: [kbuild-all] [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)
hi Hong, kindly ignore duplicated reports for this commit after the initial 1-2
reports, we will check why it sends multiple ones.
>
> 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/28427fb2b1487c69cd3ce3cfc100fdd8d85
> d73d4
> 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 14:45 kernel test robot
2020-11-03 15:03 ` Li, Philip
0 siblings, 1 reply; 17+ messages in thread
From: kernel test robot @ 2020-11-03 14:45 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 14:38 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 14:38 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 13:59 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 13:59 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 11:57 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 11:57 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 11:16 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 11:16 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 10:52 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 10:52 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 11245 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
39
> 40 const struct usbtouch_device_info DEV_INFO[] = {
41 [ODROID_VU7] = {
42 .name = "ODROID VU7 MultiTouch(800x480)",
43 .max_x = 800,
44 .max_y = 480,
45 .max_press = 255,
46 .max_finger = 5,
47 },
48 [ODROID_VU5] = {
49 .name = "ODROID VU5 MultiTouch(800x480)",
50 .max_x = 800,
51 .max_y = 480,
52 .max_press = 255,
53 .max_finger = 5,
54 },
55 [ODROID_VU7PLUS] = {
56 .name = "ODROID VU7 Plus MultiTouch(1024x600)",
57 .max_x = 1024,
58 .max_y = 600,
59 .max_press = 255,
60 .max_finger = 5,
61 },
62 };
63
64 static const struct usb_device_id dwav_usb_mt_devices[] = {
65 {USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_VU7),
66 .driver_info = ODROID_VU7},
67 {USB_DEVICE(USB_VENDOR_ID_ODROID, USB_DEVICE_ID_VU5),
68 .driver_info = ODROID_VU5},
69 {USB_DEVICE(USB_VENDOR_ID_ODROID, USB_DEVICE_ID_VU7PLUS),
70 .driver_info = ODROID_VU7PLUS},
71 {}
72 };
73
74 struct dwav_raw { /* Total 25 bytes */
75 unsigned char header; /* frame header 0xAA*/
76 unsigned char press;
77 /* Touch flag (1:valid touch data, 0:touch finished) */
78 unsigned short x1; /* 1st x */
79 unsigned short y1; /* 1st y */
80 unsigned char end;
81 /* 1st touch finish flags 0xBB, RPI only uses the first 7 bytes */
82 unsigned char ids; /* touch ID(bit field) */
83 unsigned short y2;
84 unsigned short x2;
85 unsigned short y3;
86 unsigned short x3;
87 unsigned short y4;
88 unsigned short x4;
89 unsigned short y5;
90 unsigned short x5;
91 unsigned char tail; /* frame end 0xCC */
92 };
93
94 #define TS_EVENT_UNKNOWN 0x00
95 #define TS_EVENT_PRESS 0x01
96 #define TS_EVENT_RELEASE 0x02
97
98 struct finger_t {
99 unsigned int status; /* ts event type */
100 unsigned int x; /* ts data x */
101 unsigned int y; /* ts data y */
102 } __packed;
103
104 struct dwav_usb_mt {
105 char name[128], phys[64];
106
107 int dev_id;
108 /* for URB Data DMA */
109 dma_addr_t data_dma;
110 unsigned char *data;
111 int data_size;
112
113 struct urb *irq;
114 struct usb_interface *interface;
115 struct input_dev *input;
116
117 struct finger_t *finger;
118 };
119
120 static void dwav_usb_mt_report(struct dwav_usb_mt *dwav_usb_mt)
121 {
122 int id, max_x, max_y, max_press, max_finger;
123
124 max_x = DEV_INFO[dwav_usb_mt->dev_id].max_x;
125 max_y = DEV_INFO[dwav_usb_mt->dev_id].max_y;
126 max_press = DEV_INFO[dwav_usb_mt->dev_id].max_press;
127 max_finger = DEV_INFO[dwav_usb_mt->dev_id].max_finger;
128
129 for (id = 0; id < max_finger; id++) {
130
131 if (dwav_usb_mt->finger[id].status == TS_EVENT_UNKNOWN)
132 continue;
133
134 if (dwav_usb_mt->finger[id].x >= max_x ||
135 dwav_usb_mt->finger[id].y >= max_y)
136 continue;
137
138 input_mt_slot(dwav_usb_mt->input, id);
139
140 if (dwav_usb_mt->finger[id].status != TS_EVENT_RELEASE) {
141 input_mt_report_slot_state(dwav_usb_mt->input,
142 MT_TOOL_FINGER, true);
143 input_report_abs(dwav_usb_mt->input,
144 ABS_MT_POSITION_X,
145 dwav_usb_mt->finger[id].x);
146 input_report_abs(dwav_usb_mt->input,
147 ABS_MT_POSITION_Y,
148 dwav_usb_mt->finger[id].y);
149 input_report_abs(dwav_usb_mt->input,
150 ABS_MT_PRESSURE,
151 max_press);
152 } else {
153 input_mt_report_slot_state(dwav_usb_mt->input,
154 MT_TOOL_FINGER, false);
155 dwav_usb_mt->finger[id].status = TS_EVENT_UNKNOWN;
156 }
157 input_mt_report_pointer_emulation(dwav_usb_mt->input, true);
158 input_sync(dwav_usb_mt->input);
159 }
160 }
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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 10:39 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 10:39 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [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)
@ 2020-11-03 10:07 kernel test robot
0 siblings, 0 replies; 17+ messages in thread
From: kernel test robot @ 2020-11-03 10:07 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2020-11-04 1:29 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 18:33 [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
-- strict thread matches above, loose matches on Subject: below --
2020-11-04 1:29 kernel test robot
2020-11-03 19:47 kernel test robot
2020-11-03 18:56 kernel test robot
2020-11-03 17:39 kernel test robot
2020-11-03 17:38 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
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.