All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:chromeos-6.6-f9d942cf7d57 106/1491] drivers/hid/i2c-hid/i2c-hid-core.c:522:72: error: 'struct hid_driver' has no member named 'reset'
@ 2024-10-02  0:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-02  0:55 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common chromeos-6.6-f9d942cf7d57
head:   ef2c757e09b49fa8c905e77b7c1e55ccf2be08ee
commit: 05ecf1e093a2ac5fb4de3e229165c101fc1d2281 [106/1491] FROMLIST: HID: add HID device reset callback
config: arm-randconfig-004-20241002 (https://download.01.org/0day-ci/archive/20241002/202410020833.AtUGRc5r-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241002/202410020833.AtUGRc5r-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/202410020833.AtUGRc5r-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/hid/i2c-hid/i2c-hid-core.c: In function 'i2c_hid_get_input':
>> drivers/hid/i2c-hid/i2c-hid-core.c:522:72: error: 'struct hid_driver' has no member named 'reset'
     522 |                 if (ihid->hid && ihid->hid->driver && ihid->hid->driver->reset)
         |                                                                        ^~
   drivers/hid/i2c-hid/i2c-hid-core.c:523:42: error: 'struct hid_driver' has no member named 'reset'
     523 |                         ihid->hid->driver->reset(ihid->hid);
         |                                          ^~


vim +522 drivers/hid/i2c-hid/i2c-hid-core.c

   496	
   497	static void i2c_hid_get_input(struct i2c_hid *ihid)
   498	{
   499		u16 size = le16_to_cpu(ihid->hdesc.wMaxInputLength);
   500		u16 ret_size;
   501		int ret;
   502	
   503		if (size > ihid->bufsize)
   504			size = ihid->bufsize;
   505	
   506		ret = i2c_master_recv(ihid->client, ihid->inbuf, size);
   507		if (ret != size) {
   508			if (ret < 0)
   509				return;
   510	
   511			dev_err(&ihid->client->dev, "%s: got %d data instead of %d\n",
   512				__func__, ret, size);
   513			return;
   514		}
   515	
   516		/* Receiving buffer is properly aligned */
   517		ret_size = le16_to_cpup((__le16 *)ihid->inbuf);
   518		if (!ret_size) {
   519			/* host or device initiated RESET completed */
   520			if (test_and_clear_bit(I2C_HID_RESET_PENDING, &ihid->flags))
   521				wake_up(&ihid->wait);
 > 522			if (ihid->hid && ihid->hid->driver && ihid->hid->driver->reset)
   523				ihid->hid->driver->reset(ihid->hid);
   524			return;
   525		}
   526	
   527		if ((ihid->quirks & I2C_HID_QUIRK_BOGUS_IRQ) && ret_size == 0xffff) {
   528			dev_warn_once(&ihid->client->dev,
   529				      "%s: IRQ triggered but there's no data\n",
   530				      __func__);
   531			return;
   532		}
   533	
   534		if (ret_size > size || ret_size < sizeof(__le16)) {
   535			if (ihid->quirks & I2C_HID_QUIRK_BAD_INPUT_SIZE) {
   536				*(__le16 *)ihid->inbuf = cpu_to_le16(size);
   537				ret_size = size;
   538			} else {
   539				dev_err(&ihid->client->dev,
   540					"%s: incomplete report (%d/%d)\n",
   541					__func__, size, ret_size);
   542				return;
   543			}
   544		}
   545	
   546		i2c_hid_dbg(ihid, "input: %*ph\n", ret_size, ihid->inbuf);
   547	
   548		if (test_bit(I2C_HID_STARTED, &ihid->flags)) {
   549			if (ihid->hid->group != HID_GROUP_RMI)
   550				pm_wakeup_event(&ihid->client->dev, 0);
   551	
   552			hid_input_report(ihid->hid, HID_INPUT_REPORT,
   553					ihid->inbuf + sizeof(__le16),
   554					ret_size - sizeof(__le16), 1);
   555		}
   556	
   557		return;
   558	}
   559	

-- 
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-10-02  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-02  0:55 [android-common:chromeos-6.6-f9d942cf7d57 106/1491] drivers/hid/i2c-hid/i2c-hid-core.c:522:72: error: 'struct hid_driver' has no member named 'reset' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.