From: kernel test robot <lkp@intel.com>
To: James Hilliard <james.hilliard1@gmail.com>, linux-input@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
James Hilliard <james.hilliard1@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Input: cyttsp5 - improve error handling and remove regmap
Date: Mon, 23 Oct 2023 18:35:05 +0800 [thread overview]
Message-ID: <202310231838.JHHtGKmB-lkp@intel.com> (raw)
In-Reply-To: <20231023085234.105572-1-james.hilliard1@gmail.com>
Hi James,
kernel test robot noticed the following build warnings:
[auto build test WARNING on dtor-input/next]
[also build test WARNING on dtor-input/for-linus hid/for-next linus/master v6.6-rc7 next-20231023]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/James-Hilliard/Input-cyttsp5-improve-error-handling-and-remove-regmap/20231023-165327
base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
patch link: https://lore.kernel.org/r/20231023085234.105572-1-james.hilliard1%40gmail.com
patch subject: [PATCH] Input: cyttsp5 - improve error handling and remove regmap
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231023/202310231838.JHHtGKmB-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231023/202310231838.JHHtGKmB-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/202310231838.JHHtGKmB-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/input/touchscreen/cyttsp5.c: In function 'cyttsp5_get_hid_descriptor':
>> drivers/input/touchscreen/cyttsp5.c:684:22: warning: unused variable 'reg' [-Wunused-variable]
684 | unsigned int reg = HID_DESC_REG;
| ^~~
vim +/reg +684 drivers/input/touchscreen/cyttsp5.c
677
678 static int cyttsp5_get_hid_descriptor(struct cyttsp5 *ts,
679 struct cyttsp5_hid_desc *desc)
680 {
681 struct device *dev = ts->dev;
682 u8 cmd[2] = { 0 };
683 int rc;
> 684 unsigned int reg = HID_DESC_REG;
685
686 put_unaligned_le16(HID_DESC_REG, cmd);
687
688 rc = cyttsp5_write(ts, HID_DESC_REG, cmd, 2);
689 if (rc) {
690 dev_err(dev, "Failed to get HID descriptor, rc=%d\n", rc);
691 return rc;
692 }
693
694 rc = wait_for_completion_interruptible_timeout(&ts->cmd_done,
695 msecs_to_jiffies(CY_HID_GET_HID_DESCRIPTOR_TIMEOUT_MS));
696 if (rc <= 0) {
697 dev_err(ts->dev, "HID get descriptor timed out\n");
698 rc = -ETIMEDOUT;
699 return rc;
700 }
701
702 memcpy(desc, ts->response_buf, sizeof(*desc));
703
704 /* Check HID descriptor length and version */
705 if (le16_to_cpu(desc->hid_desc_len) != sizeof(*desc) ||
706 le16_to_cpu(desc->bcd_version) != HID_VERSION) {
707 dev_err(dev, "Unsupported HID version\n");
708 return -ENODEV;
709 }
710
711 return 0;
712 }
713
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2023-10-23 10:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-23 8:52 [PATCH] Input: cyttsp5 - improve error handling and remove regmap James Hilliard
2023-10-23 10:35 ` kernel test robot [this message]
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=202310231838.JHHtGKmB-lkp@intel.com \
--to=lkp@intel.com \
--cc=dmitry.torokhov@gmail.com \
--cc=james.hilliard1@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox