Re: [PATCH 1/2] HID: hiddev: move hiddev's minor number from struct hid_device to hiddev

From: kbuild test robot
Date: Fri Mar 03 2017 - 10:43:02 EST


Hi Jaejoong,

[auto build test ERROR on hid/for-next]
[also build test ERROR on v4.10 next-20170303]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Jaejoong-Kim/HID-hiddev-move-hiddev-s-minor-number-and-refactoring/20170303-222428
base: https://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-next
config: i386-randconfig-b0-03032110 (attached as .config)
compiler: gcc-5 (Debian 5.4.1-2) 5.4.1 20160904
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

drivers/hid/hid-cp2112.c: In function 'cp2112_probe':
>> drivers/hid/hid-cp2112.c:1300:43: error: 'struct hid_device' has no member named 'minor'
"CP2112 SMBus Bridge on hiddev%d", hdev->minor);
^

vim +1300 drivers/hid/hid-cp2112.c

e932d817 David Barksdale 2014-02-04 1294 dev->adap.owner = THIS_MODULE;
e932d817 David Barksdale 2014-02-04 1295 dev->adap.class = I2C_CLASS_HWMON;
e932d817 David Barksdale 2014-02-04 1296 dev->adap.algo = &smbus_algorithm;
e932d817 David Barksdale 2014-02-04 1297 dev->adap.algo_data = dev;
e932d817 David Barksdale 2014-02-04 1298 dev->adap.dev.parent = &hdev->dev;
e932d817 David Barksdale 2014-02-04 1299 snprintf(dev->adap.name, sizeof(dev->adap.name),
e932d817 David Barksdale 2014-02-04 @1300 "CP2112 SMBus Bridge on hiddev%d", hdev->minor);
44eda784 Ellen Wang 2015-07-09 1301 dev->hwversion = buf[2];
e932d817 David Barksdale 2014-02-04 1302 init_waitqueue_head(&dev->wait);
e932d817 David Barksdale 2014-02-04 1303

:::::: The code at line 1300 was first introduced by commit
:::::: e932d817866770d456815c9a84b7ed94f0589d80 HID: add hid-cp2112 driver

:::::: TO: David Barksdale <dbarksdale@xxxxxxxxxxx>
:::::: 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