From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3600817402053417025==" MIME-Version: 1.0 From: Li, Philip To: kbuild-all@lists.01.org Subject: 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) Date: Tue, 03 Nov 2020 15:03:02 +0000 Message-ID: <24ff962609884eed9e8321e00da302d2@intel.com> In-Reply-To: <202011032234.Y3Pbvn9O-lkp@intel.com> List-Id: --===============3600817402053417025== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > 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/28427fb2b1487c69cd3ce3cfc100fdd8= d85 > 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=3D$HOME/0day COMPILER=3Dgcc-9.3.0 make.cros= s C=3D1 > CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=3Dsparc64 > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > = > "sparse warnings: (new ones prefixed by >>)" > >> drivers/input/touchscreen/dwav-usb-mt.c:176:41: sparse: sparse: incorr= ect > 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: incorr= ect > 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: incorr= ect > 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: incorr= ect > 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: incorr= ect > 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: incorr= ect > 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: incorr= ect > 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: incorr= ect > 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: incorr= ect > 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: incorr= ect > 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 =3D (struct dwav_raw *)pkt; > 166 unsigned char bit_mask, cnt; > 167 > 168 for (cnt =3D 0, bit_mask =3D 0x01; > 169 cnt < DEV_INFO[dwav_usb_mt->dev_id].max_finger; > 170 cnt++, bit_mask <<=3D 1) { > 171 if ((dwav_raw->ids & bit_mask) && dwav_raw->press) { > 172 dwav_usb_mt->finger[cnt].status =3D > TS_EVENT_PRESS; > 173 switch (cnt) { > 174 case 0: > 175 dwav_usb_mt->finger[cnt].x > > 176 =3D cpu_to_be16(dwav_raw->x1); > 177 dwav_usb_mt->finger[cnt].y > > 178 =3D cpu_to_be16(dwav_raw->y1); > 179 break; > 180 case 1: > 181 dwav_usb_mt->finger[cnt].x > 182 =3D cpu_to_be16(dwav_raw->x2); > 183 dwav_usb_mt->finger[cnt].y > 184 =3D cpu_to_be16(dwav_raw->y2); > 185 break; > 186 case 2: > 187 dwav_usb_mt->finger[cnt].x > 188 =3D cpu_to_be16(dwav_raw->x3); > 189 dwav_usb_mt->finger[cnt].y > 190 =3D cpu_to_be16(dwav_raw->y3); > 191 break; > 192 case 3: > 193 dwav_usb_mt->finger[cnt].x > 194 =3D cpu_to_be16(dwav_raw->x4); > 195 dwav_usb_mt->finger[cnt].y > 196 =3D cpu_to_be16(dwav_raw->y4); > 197 break; > 198 case 4: > 199 dwav_usb_mt->finger[cnt].x > 200 =3D cpu_to_be16(dwav_raw->x5); > 201 dwav_usb_mt->finger[cnt].y > 202 =3D cpu_to_be16(dwav_raw->y5); > 203 break; > 204 default: > 205 break; > 206 } > 207 } else { > 208 if (dwav_usb_mt->finger[cnt].status =3D=3D > TS_EVENT_PRESS) > 209 dwav_usb_mt->finger[cnt].status > 210 =3D TS_EVENT_RELEASE; > 211 else > 212 dwav_usb_mt->finger[cnt].status > 213 =3D 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 --===============3600817402053417025==--