* [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
@ 2026-06-09 17:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-09 17:19 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 17:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-09 17:19 [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 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.