[hid:for-4.17/upstream 10/10] drivers//hid/hid-multitouch.c:379:8: error: 'struct mt_device' has no member named 'initial_quirks'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-4.17/upstream
head:   f6e9683c937e2246bbc1e7e8582ec71d6494f1f0
commit: f6e9683c937e2246bbc1e7e8582ec71d6494f1f0 [10/10] HID: core: reset the quirks before calling probe again
config: i386-randconfig-x000-201811 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout f6e9683c937e2246bbc1e7e8582ec71d6494f1f0
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//hid/hid-multitouch.c: In function 'mt_get_feature':
>> drivers//hid/hid-multitouch.c:379:8: error: 'struct mt_device' has no member named 'initial_quirks'
     if (td->initial_quirks & HID_QUIRK_NO_INIT_REPORTS)
           ^~

vim +379 drivers//hid/hid-multitouch.c

eec29e3d Benjamin Tissoires 2011-11-23  368  
6d4f5440 Mika Westerberg    2015-10-07  369  static void mt_get_feature(struct hid_device *hdev, struct hid_report *report)
6d4f5440 Mika Westerberg    2015-10-07  370  {
6d4f5440 Mika Westerberg    2015-10-07  371  	struct mt_device *td = hid_get_drvdata(hdev);
6d4f5440 Mika Westerberg    2015-10-07  372  	int ret, size = hid_report_len(report);
6d4f5440 Mika Westerberg    2015-10-07  373  	u8 *buf;
6d4f5440 Mika Westerberg    2015-10-07  374  
6d4f5440 Mika Westerberg    2015-10-07  375  	/*
b897f6db Benjamin Tissoires 2016-11-25  376  	 * Do not fetch the feature report if the device has been explicitly
b897f6db Benjamin Tissoires 2016-11-25  377  	 * marked as non-capable.
6d4f5440 Mika Westerberg    2015-10-07  378  	 */
b897f6db Benjamin Tissoires 2016-11-25 @379  	if (td->initial_quirks & HID_QUIRK_NO_INIT_REPORTS)
6d4f5440 Mika Westerberg    2015-10-07  380  		return;
6d4f5440 Mika Westerberg    2015-10-07  381  
6d4f5440 Mika Westerberg    2015-10-07  382  	buf = hid_alloc_report_buf(report, GFP_KERNEL);
6d4f5440 Mika Westerberg    2015-10-07  383  	if (!buf)
6d4f5440 Mika Westerberg    2015-10-07  384  		return;
6d4f5440 Mika Westerberg    2015-10-07  385  
6d4f5440 Mika Westerberg    2015-10-07  386  	ret = hid_hw_raw_request(hdev, report->id, buf, size,
6d4f5440 Mika Westerberg    2015-10-07  387  				 HID_FEATURE_REPORT, HID_REQ_GET_REPORT);
6d4f5440 Mika Westerberg    2015-10-07  388  	if (ret < 0) {
6d4f5440 Mika Westerberg    2015-10-07  389  		dev_warn(&hdev->dev, "failed to fetch feature %d\n",
6d4f5440 Mika Westerberg    2015-10-07  390  			 report->id);
6d4f5440 Mika Westerberg    2015-10-07  391  	} else {
6d4f5440 Mika Westerberg    2015-10-07  392  		ret = hid_report_raw_event(hdev, HID_FEATURE_REPORT, buf,
6d4f5440 Mika Westerberg    2015-10-07  393  					   size, 0);
6d4f5440 Mika Westerberg    2015-10-07  394  		if (ret)
6d4f5440 Mika Westerberg    2015-10-07  395  			dev_warn(&hdev->dev, "failed to report feature\n");
6d4f5440 Mika Westerberg    2015-10-07  396  	}
6d4f5440 Mika Westerberg    2015-10-07  397  
6d4f5440 Mika Westerberg    2015-10-07  398  	kfree(buf);
6d4f5440 Mika Westerberg    2015-10-07  399  }
6d4f5440 Mika Westerberg    2015-10-07  400  

:::::: The code at line 379 was first introduced by commit
:::::: b897f6db3ae2cd9a42377f8b1865450f34ceff0e HID: multitouch: do not retrieve all reports for all devices

:::::: TO: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
:::::: CC: Jiri Kosina <jkosina@xxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux