oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [chrome-os:chromeos-6.1 23/78] drivers/hid/hid-himax.c:1494:26: sparse: sparse: incorrect type in assignment (different base types)
@ 2024-05-10 12:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-10 12:18 UTC (permalink / raw)
  To: cros-kernel-buildreports, Guenter Roeck; +Cc: oe-kbuild-all

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.1
head:   cd87d14c5c4cc74e7c89677acb4aa9c804165fc7
commit: 50c4d6f26836b63f8f5fe713f49aef462e05399f [23/78] CHROMIUM: HID: hid-himax: Implement hidraw debug functions
config: arm64-randconfig-r113-20240510 (https://download.01.org/0day-ci/archive/20240510/202405102036.8oOEhnI8-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240510/202405102036.8oOEhnI8-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405102036.8oOEhnI8-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/hid/hid-himax.c:402:35: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:402:35: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:402:35: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:469:35: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:469:35: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:469:35: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:645:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:645:28: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:645:28: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:653:30: sparse: sparse: cast to restricted __le32
   drivers/hid/hid-himax.c:685:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:685:28: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:685:28: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:687:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:687:28: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:687:28: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:737:26: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:737:26: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:737:26: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:785:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short @@     got restricted __le16 [usertype] @@
   drivers/hid/hid-himax.c:785:30: sparse:     expected unsigned short
   drivers/hid/hid-himax.c:785:30: sparse:     got restricted __le16 [usertype]
   drivers/hid/hid-himax.c:802:36: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:802:36: sparse:     expected unsigned int [addressable] [usertype] dword
   drivers/hid/hid-himax.c:802:36: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:839:26: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:839:26: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:839:26: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:855:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short @@     got restricted __le16 [usertype] @@
   drivers/hid/hid-himax.c:855:30: sparse:     expected unsigned short
   drivers/hid/hid-himax.c:855:30: sparse:     got restricted __le16 [usertype]
   drivers/hid/hid-himax.c:911:30: sparse: sparse: cast to restricted __le32
   drivers/hid/hid-himax.c:1247:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:1247:20: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:1247:20: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:1261:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:1261:20: sparse:     expected unsigned int [addressable] [usertype] dword
   drivers/hid/hid-himax.c:1261:20: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:1268:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:1268:20: sparse:     expected unsigned int [addressable] [usertype] dword
   drivers/hid/hid-himax.c:1268:20: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:1290:21: sparse: sparse: cast to restricted __le32
   drivers/hid/hid-himax.c:1372:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:1372:20: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:1372:20: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:1379:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short @@     got restricted __le16 [usertype] @@
   drivers/hid/hid-himax.c:1379:22: sparse:     expected unsigned short
   drivers/hid/hid-himax.c:1379:22: sparse:     got restricted __le16 [usertype]
   drivers/hid/hid-himax.c:1380:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short @@     got restricted __le16 [usertype] @@
   drivers/hid/hid-himax.c:1380:22: sparse:     expected unsigned short
   drivers/hid/hid-himax.c:1380:22: sparse:     got restricted __le16 [usertype]
   drivers/hid/hid-himax.c:1393:13: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:1405:30: sparse: sparse: cast to restricted __le32
   drivers/hid/hid-himax.c:1413:39: sparse: sparse: cast to restricted __le32
   drivers/hid/hid-himax.c:1449:37: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:1449:37: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:1449:37: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:1451:37: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:1451:37: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:1451:37: sparse:     got restricted __le32 [usertype]
>> drivers/hid/hid-himax.c:1494:26: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] vid @@     got restricted __be16 [usertype] @@
   drivers/hid/hid-himax.c:1494:26: sparse:     expected unsigned short [usertype] vid
   drivers/hid/hid-himax.c:1494:26: sparse:     got restricted __be16 [usertype]
>> drivers/hid/hid-himax.c:1495:26: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] pid @@     got restricted __be16 [usertype] @@
   drivers/hid/hid-himax.c:1495:26: sparse:     expected unsigned short [usertype] pid
   drivers/hid/hid-himax.c:1495:26: sparse:     got restricted __be16 [usertype]
>> drivers/hid/hid-himax.c:1500:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] y_res @@     got restricted __be16 [usertype] @@
   drivers/hid/hid-himax.c:1500:28: sparse:     expected unsigned short [usertype] y_res
   drivers/hid/hid-himax.c:1500:28: sparse:     got restricted __be16 [usertype]
>> drivers/hid/hid-himax.c:1501:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] x_res @@     got restricted __be16 [usertype] @@
   drivers/hid/hid-himax.c:1501:28: sparse:     expected unsigned short [usertype] x_res
   drivers/hid/hid-himax.c:1501:28: sparse:     got restricted __be16 [usertype]
   drivers/hid/hid-himax.c:1622:57: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] *[assigned] word @@
   drivers/hid/hid-himax.c:1622:57: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:1622:57: sparse:     got unsigned int [usertype] *[assigned] word
   drivers/hid/hid-himax.c:1624:61: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] *[assigned] word @@
   drivers/hid/hid-himax.c:1624:61: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:1624:61: sparse:     got unsigned int [usertype] *[assigned] word
   drivers/hid/hid-himax.c:1758:31: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be16 const [usertype] *p @@     got unsigned short [usertype] * @@
   drivers/hid/hid-himax.c:1758:31: sparse:     expected restricted __be16 const [usertype] *p
   drivers/hid/hid-himax.c:1758:31: sparse:     got unsigned short [usertype] *
   drivers/hid/hid-himax.c:1759:31: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be16 const [usertype] *p @@     got unsigned short [usertype] * @@
   drivers/hid/hid-himax.c:1759:31: sparse:     expected restricted __be16 const [usertype] *p
   drivers/hid/hid-himax.c:1759:31: sparse:     got unsigned short [usertype] *
   drivers/hid/hid-himax.c:1860:26: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:1860:26: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:1860:26: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:1971:44: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] * @@
   drivers/hid/hid-himax.c:1971:44: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:1971:44: sparse:     got unsigned int [usertype] *
   drivers/hid/hid-himax.c:1972:41: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] * @@
   drivers/hid/hid-himax.c:1972:41: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:1972:41: sparse:     got unsigned int [usertype] *
   drivers/hid/hid-himax.c:1979:52: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] * @@
   drivers/hid/hid-himax.c:1979:52: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:1979:52: sparse:     got unsigned int [usertype] *
   drivers/hid/hid-himax.c:1980:49: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] * @@
   drivers/hid/hid-himax.c:1980:49: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:1980:49: sparse:     got unsigned int [usertype] *
   drivers/hid/hid-himax.c:1981:50: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] * @@
   drivers/hid/hid-himax.c:1981:50: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:1981:50: sparse:     got unsigned int [usertype] *
   drivers/hid/hid-himax.c:2035:60: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] * @@
   drivers/hid/hid-himax.c:2035:60: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:2035:60: sparse:     got unsigned int [usertype] *
   drivers/hid/hid-himax.c:2108:26: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:2108:26: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:2108:26: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:2491:35: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] * @@
   drivers/hid/hid-himax.c:2491:35: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:2491:35: sparse:     got unsigned int [usertype] *
   drivers/hid/hid-himax.c:2496:47: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le32 const [usertype] *p @@     got unsigned int [usertype] * @@
   drivers/hid/hid-himax.c:2496:47: sparse:     expected restricted __le32 const [usertype] *p
   drivers/hid/hid-himax.c:2496:47: sparse:     got unsigned int [usertype] *
   drivers/hid/hid-himax.c:2502:46: sparse: sparse: cast to restricted __le32
   drivers/hid/hid-himax.c:2692:41: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:2692:41: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:2692:41: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:3524:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3526:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3528:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3530:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3532:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3534:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3536:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3538:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3540:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3542:17: sparse: sparse: cast to restricted __le16
   drivers/hid/hid-himax.c:3686:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:3686:28: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:3686:28: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c:3688:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] dword @@     got restricted __le32 [usertype] @@
   drivers/hid/hid-himax.c:3688:28: sparse:     expected unsigned int [usertype] dword
   drivers/hid/hid-himax.c:3688:28: sparse:     got restricted __le32 [usertype]
   drivers/hid/hid-himax.c: note: in included file (through include/drm/drm_panel.h, drivers/hid/hid-himax.h):
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +1494 drivers/hid/hid-himax.c

  1476	
  1477	/**
  1478	 * himax_hid_update_info() - Update hid info
  1479	 * @ts: Himax touch screen data
  1480	 *
  1481	 * This function is used to update the hid info from firmware image and IC data
  1482	 * for hidraw ioctl to get the hid info. Which tell user space tool the touch
  1483	 * information and how to update the firmware at runtime.The firmware update
  1484	 * mapping tells user space tool how to update the firmware, it separates into
  1485	 * bl part and main part. The bl part is used to update the bootloader, and runs
  1486	 * only once. Which suits the need to update firmware through SPI. So we give
  1487	 * bin_start_offset 0, and unit_sz as the size of firmware image in KB.
  1488	 *
  1489	 * Return: None
  1490	 */
  1491	static void himax_hid_update_info(struct himax_ts_data *ts)
  1492	{
  1493		memcpy(&ts->hid_info.fw_bin_desc, &ts->fw_bin_desc, sizeof(struct himax_bin_desc));
> 1494		ts->hid_info.vid = cpu_to_be16(ts->hid_desc.vendor_id);
> 1495		ts->hid_info.pid = cpu_to_be16(ts->hid_desc.product_id);
  1496		ts->hid_info.cfg_version = ts->ic_data.vendor_touch_cfg_ver;
  1497		ts->hid_info.disp_version = ts->ic_data.vendor_display_cfg_ver;
  1498		ts->hid_info.rx = ts->ic_data.rx_num;
  1499		ts->hid_info.tx = ts->ic_data.tx_num;
> 1500		ts->hid_info.y_res = cpu_to_be16(ts->ic_data.y_res);
> 1501		ts->hid_info.x_res = cpu_to_be16(ts->ic_data.x_res);
  1502		ts->hid_info.pt_num = ts->ic_data.max_point;
  1503		ts->hid_info.mkey_num = ts->ic_data.button_num;
  1504		/* firmware table parameters, use only bl part. */
  1505		ts->hid_info.bl_mapping.cmd = HIMAX_HID_FW_UPDATE_BL_CMD;
  1506		ts->hid_info.bl_mapping.bin_start_offset = 0;
  1507		ts->hid_info.bl_mapping.unit_sz = ts->ic_data.bl_size / 1024;
  1508	}
  1509	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-10 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 12:18 [chrome-os:chromeos-6.1 23/78] drivers/hid/hid-himax.c:1494:26: sparse: sparse: incorrect type in assignment (different base types) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).