All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Wed, 2 Oct 2024 08:55:12 +0800	[thread overview]
Message-ID: <202410020833.AtUGRc5r-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-10-02  0:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202410020833.AtUGRc5r-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.