From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-6.6 31/31] drivers/hid/spi-hid/spi-hid-core.c:361:8: warning: 'const' type qualifier on return type has no effect
Date: Wed, 10 Jun 2026 01:19:59 +0800 [thread overview]
Message-ID: <202606100102.godb97gP-lkp@intel.com> (raw)
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head: a4d01e77dd885e0545ecd445e2facf156ddf42f5
commit: b61fdddf40df4657f4c32f5241508cd3a4ce4ec4 [31/31] CHROMIUM: HID: spi_hid: add ACPI support for SPI over HID
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260610/202606100102.godb97gP-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 7917772d7d61384696c61102c08c2ea158e610fa)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260610/202606100102.godb97gP-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/202606100102.godb97gP-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/hid/spi-hid/spi-hid-core.c:361:8: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
361 | static const u32 spi_hid_get_timeout(struct spi_hid *shid)
| ^~~~~
drivers/hid/spi-hid/spi-hid-core.c:247:13: warning: unused function 'spi_hid_suspend' [-Wunused-function]
247 | static void spi_hid_suspend(struct spi_hid *shid)
| ^~~~~~~~~~~~~~~
drivers/hid/spi-hid/spi-hid-core.c:252:13: warning: unused function 'spi_hid_resume' [-Wunused-function]
252 | static void spi_hid_resume(struct spi_hid *shid)
| ^~~~~~~~~~~~~~
3 warnings generated.
vim +/const +361 drivers/hid/spi-hid/spi-hid-core.c
b92291c9316fb3a Angela Czubak 2023-03-24 360
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 @361 static const u32 spi_hid_get_timeout(struct spi_hid *shid)
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 362 {
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 363 struct device *dev = &shid->spi->dev;
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 364 u32 timeout;
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 365
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 366 timeout = READ_ONCE(shid->ops->response_timeout_ms);
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 367
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 368 if (timeout < SPI_HID_RESPONSE_TIMEOUT_MS || timeout > 10000) {
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 369 dev_warn(dev, "Response timeout is out of range, using default %d",
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 370 SPI_HID_RESPONSE_TIMEOUT_MS);
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 371 timeout = SPI_HID_RESPONSE_TIMEOUT_MS;
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 372 }
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 373
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 374 return timeout;
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 375 }
890ead8d6ab51b2 Jingyuan Liang 2026-01-15 376
:::::: The code at line 361 was first introduced by commit
:::::: 890ead8d6ab51b21af1605ec22461e81ba6064dc CHROMIUM: HID:spi-hid: add quirk to support mode switch
:::::: TO: Jingyuan Liang <jingyliang@chromium.org>
:::::: CC: chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-09 17:20 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=202606100102.godb97gP-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.