drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c:469:49: sparse: sparse: cast to restricted __le16
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 262858079afde6d367ce3db183c74d8a43a0e83f commit: 0b1fca9dce44d0d2a8f4c55df1e4149744934a91 [10265/12740] HID: intel-thc-hid: intel-quicki2c: support ACPI config for advanced features config: x86_64-randconfig-r121-20250928 (https://download.01.org/0day-ci/archive/20250928/[email protected]/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250928/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
>> drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c:469:49: sparse: sparse: cast to restricted __le16
vim +469 drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
445
446 /**
447 * quicki2c_dma_adv_enable - Configure and enable DMA advanced features
448 * @qcdev: Pointer to the quicki2c_device structure
449 *
450 * If platform supports THC DMA advanced features, such as max input size
451 * control or interrupt delay, configures and enables them.
452 */
453 static void quicki2c_dma_adv_enable(struct quicki2c_device *qcdev)
454 {
455 /*
456 * If platform supports max input size control feature and touch device
457 * max input length <= THC detect capability, enable the feature with device
458 * max input length.
459 */
460 if (qcdev->i2c_max_frame_size_enable) {
461 if (qcdev->i2c_max_frame_size >=
462 le16_to_cpu(qcdev->dev_desc.max_input_len)) {
463 thc_i2c_set_rx_max_size(qcdev->thc_hw,
464 le16_to_cpu(qcdev->dev_desc.max_input_len));
465 } else {
466 dev_warn(qcdev->dev,
467 "Max frame size is smaller than hid max input length!");
468 thc_i2c_set_rx_max_size(qcdev->thc_hw,
> 469 le16_to_cpu(qcdev->i2c_max_frame_size));
470 }
471 thc_i2c_rx_max_size_enable(qcdev->thc_hw, true);
472 }
473
474 /* If platform supports interrupt delay feature, enable it with given delay */
475 if (qcdev->i2c_int_delay_enable) {
476 thc_i2c_set_rx_int_delay(qcdev->thc_hw,
477 qcdev->i2c_int_delay * 10);
478 thc_i2c_rx_int_delay_enable(qcdev->thc_hw, true);
479 }
480 }
481
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki