drivers/hid/i2c-hid/i2c-hid.c:1134:3-8: No need to set .owner here. The core will do it.

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

 



Hi Sasha,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   097f70b3c4d84ffccca15195bdfde3a37c0a7c0f
commit: 71458cfc782eafe4b27656e078d379a34e472adf kernel: add support for gcc 5
date:   12 months ago


coccinelle warnings: (new ones prefixed by >>)

>> drivers/hid/i2c-hid/i2c-hid.c:1134:3-8: No need to set .owner here. The core will do it.

vim +1134 drivers/hid/i2c-hid/i2c-hid.c

34f439e4 Mika Westerberg    2014-01-29  1118  static const struct dev_pm_ops i2c_hid_pm = {
34f439e4 Mika Westerberg    2014-01-29  1119  	SET_SYSTEM_SLEEP_PM_OPS(i2c_hid_suspend, i2c_hid_resume)
34f439e4 Mika Westerberg    2014-01-29  1120  	SET_RUNTIME_PM_OPS(i2c_hid_runtime_suspend, i2c_hid_runtime_resume,
34f439e4 Mika Westerberg    2014-01-29  1121  			   NULL)
34f439e4 Mika Westerberg    2014-01-29  1122  };
4a200c3b Benjamin Tissoires 2012-11-12  1123  
4a200c3b Benjamin Tissoires 2012-11-12  1124  static const struct i2c_device_id i2c_hid_id_table[] = {
24ebb37e Benjamin Tissoires 2012-12-04  1125  	{ "hid", 0 },
4a200c3b Benjamin Tissoires 2012-11-12  1126  	{ },
4a200c3b Benjamin Tissoires 2012-11-12  1127  };
4a200c3b Benjamin Tissoires 2012-11-12  1128  MODULE_DEVICE_TABLE(i2c, i2c_hid_id_table);
4a200c3b Benjamin Tissoires 2012-11-12  1129  
4a200c3b Benjamin Tissoires 2012-11-12  1130  
4a200c3b Benjamin Tissoires 2012-11-12  1131  static struct i2c_driver i2c_hid_driver = {
4a200c3b Benjamin Tissoires 2012-11-12  1132  	.driver = {
4a200c3b Benjamin Tissoires 2012-11-12  1133  		.name	= "i2c_hid",
4a200c3b Benjamin Tissoires 2012-11-12 @1134  		.owner	= THIS_MODULE,
4a200c3b Benjamin Tissoires 2012-11-12  1135  		.pm	= &i2c_hid_pm,
92241e67 Mika Westerberg    2013-01-09  1136  		.acpi_match_table = ACPI_PTR(i2c_hid_acpi_match),
3d7d248c Benjamin Tissoires 2013-06-13  1137  		.of_match_table = of_match_ptr(i2c_hid_of_match),
4a200c3b Benjamin Tissoires 2012-11-12  1138  	},
4a200c3b Benjamin Tissoires 2012-11-12  1139  
4a200c3b Benjamin Tissoires 2012-11-12  1140  	.probe		= i2c_hid_probe,
0fe763c5 Greg Kroah-Hartman 2012-12-21  1141  	.remove		= i2c_hid_remove,
4a200c3b Benjamin Tissoires 2012-11-12  1142  

:::::: The code at line 1134 was first introduced by commit
:::::: 4a200c3b9a40242652b5734630bdd0bcf3aca75f HID: i2c-hid: introduce HID over i2c specification implementation

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

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

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]